Title: Dynamic Mandatory Fields
Last modified: June 21, 2018

---

# Dynamic Mandatory Fields

 *  Resolved [ritmo105](https://wordpress.org/support/users/ritmo105/)
 * (@ritmo105)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dynamic-mandatory-fields/)
 * Hi, I need to make 2 fields mandatory in a dynamic way. One of the 2 fields must
   be mandatory but I don’t have to decide when I’m creating the form, but based
   on user compiling . Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/dynamic-mandatory-fields/#post-10422824)
 * Hello.
    I can suggest that you need to set some fields as required deoend from
   selected options in checkboxes or selectboxes in your booking form, if so then
   unfortunately, by default this functionality does not available in original versions
   of Booking Calendar.
 * You will be need to create some custom JavaScript code, which will add or remove
   these CSS classes “**wpdev-validates-as-required**” to the text fields, for checking
   these fields as required fields, during submitting of the booking form.
 * **Disclaimer**. Unfortunately we can not start, right now, some personal customization
   or custom development, because almost have no free time.
    Check more about new
   features here [https://wpbookingcalendar.com/faq/need-new-feature/](https://wpbookingcalendar.com/faq/need-new-feature/)
   Thank you for understanding. Please note, if you will modify the source code 
   of the Booking Calendar, we will not guaranteed the correct work of plugin and
   do not support it. Kind Regards.

Viewing 1 replies (of 1 total)

The topic ‘Dynamic Mandatory Fields’ is closed to new replies.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/dynamic-mandatory-fields/#post-10422824)
 * Status: resolved