Can I Create Conditional Validation Rules?

I have a form where I want to perform validation on input A only if checkbox B is checked.

Is there a way to do this with Wappler Validation Rules?

Yes, you can do this. For example to make a text input required when a checkbox is clicked it will look like:

 <input id="text1" name="text1" type="text" class="form-control" dmx-bind:required="mycheckbox.checked">
2 Likes

Brilliant, thank you @Teodor!

Is this possibility available to set via the menu system, or only by editing the code?

Dynamic attributes > Input > Required

1 Like