Not Required custom fields
-
I’m following this tutorial to create custom fields in my Awesome Support form:
https://getawesomesupport.com/documentation-new/documentation-awesome-support-core-customization/However, it seems that all custom fields are set as REQUIRED even though I set up FALSE to this variable in the code.
For instance, this code:wpas_add_custom_field( 'myown_field', array( 'title' => __( 'Custom Field #1', 'wpas' ), 'field_type' => 'text', 'required' => false ) );
shows me a text field in the form, but if I choose to leave it empty, I can’t send the form because it tells me that thi field cannot be empty. In fact, the code for this field looks like this:
<input type="text" value="" id="wpas_myown_field" class="wpas-form-control" name="wpas_myown_field" required="">
How can I add a NOT REQUIRED custom field?
- The topic ‘Not Required custom fields’ is closed to new replies.