Bug with custom fields being required
-
I have added a set of custome fields in functions.php:
// Add Fields To Salon Booking Checkout
add_filter(‘sln.checkout.additional_fields’,function(){
return array(
‘custom_field_a’=> array(
“label” => ‘Vehicle Make’,
“type” => ‘text’,
“width” => ‘full’,
“default” => ”,
“customer_profile” => true
),
‘custom_field_b’=> array(
“label” => ‘Vehicle Model’,
“type” => ‘text’,
“width” => ‘full’,
“default” => ”,
“customer_profile” => true
),
‘custom_field_c’=> array(
“label” => ‘Vehicle Year’,
“type” => ‘text’,
“width” => ‘full’,
“default” => ”,
“customer_profile” => true
),
‘custom_field_d’=> array(
“label” => ‘Comments’,
“type” => ‘textarea’,
“width” => ‘full’,
“default” => ”
),
‘custom_field_f’=> array(
“label” => ‘Drop Off Vehicle?’,
“type” => ‘select’,
“options” => array(‘Wait’,’Drop Off’),
“width” => ‘full’,
“default” => ‘Wait’
)
);
});They worked great until a recent update. Now in the admin when you try to edit an appointment, if a custom field is set to “Required” it will not save the whole appointment. Turning the custom field(s) to not “Required” allows the form to save.
Additionally when you try to create an appointment in the backend I am unable to even fill-out a custom field irregardless of it being “Required” are Not Required”.Update: I looked deeper and the custom fields are being recorded to db but are NOT showing in the admin for the appointment. The email sent to customer/admin contains the custom field data but it is not shown in the edit appointment popup.
- The topic ‘Bug with custom fields being required’ is closed to new replies.