You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting the value option to 0 (zero) for a number field so the default number displayed for the field is 0 the field instead displays no value.
To Reproduce
Steps to reproduce the behavior:
Create a code snippet for the site that creates a number field and set the value option for the field to 0
$fields[] = newPMProRH_Field(
'test_value_zero', // input field name, used as meta key'number', // field typearray(
'label' => 'Number Test', // display custom label, if not used field name will be used'value' => '0',
'hint' => 'Testing 0 (zero) as the default value', // display a hint under field'profile' => true, // show on profile
)
);
Navigate to the Membership Checkout page on the frontend.
Describe the bug
When setting the
value
option to0
(zero) for a number field so the default number displayed for the field is0
the field instead displays no value.To Reproduce
Steps to reproduce the behavior:
value
option for the field to0
Screenshots
Expected behavior
If a value of
0
is set for the number field that the field displays0
as its starting value.Isolating the problem (mark completed items with an [x]):
The text was updated successfully, but these errors were encountered: