Forums

Make conditional fields Required

tomaszciti 30 Nov, 2022
Hi,

How would I make conditional fields triggered (shown) by events Required when conditions are met e.g.

- Radio with values '1' and '0'
- when Radio = '1' show 'A' field and make it Required
- when Radio ='0' hide 'A' field and make it not Required

I know how events work and how to use them to show conditional fields, but can't figure out how to make field Required.

I know there is "Optional" Validation setting but it only works when field is not blank.
rbock 30 Nov, 2022
field A: add disabled to validation
field A: add a event: if "radio field" = 1 -> enable validation | if "radio field" = 0 -> disable validation
tomaszciti 01 Dec, 2022
<blockquote><p>
field A: add disabled to validation
field A: add a event: if "radio field" = 1 -> enable validation | if "radio field" = 0 -> disable validation
</p></blockquote>

Thanks. This is working for individual fields.

I think there might be a bug as if you try to do the same with multifields it doesn't work.
You need to login to be able to post a reply.