Search code examples
crafter-cms

Making dynamic content forms with checkbox


How do I make my content forms dynamic in CRAFTER CMS?

I want my form to hide/unhide other form controls when a checkbox is checked.

I also want to require certain fields (form controls) to be filled out when a checkbox is checked or not.


Solution

  • The form engine doesn't currently have any pre-built relationships/interactions between form controls. That said, form controls are just simple javascript that you can create/add or extend.

    Here is a link to a short guide on creating custom form controls: https://docs.craftercms.org/en/3.0/developers/extending-studio/form-engine-control.html