I have a select form input that contains an option for 'Other'. I would like if the value of the select is Other that the details text area be required. I'd like the Details text area to be required only if the select value is 'Other'.
Quite a simple one Brad. Select the input then select Dynamic Attributes. Pick the input and then select required. You can then create your condition in the Expression Builder.
FORMID being the id of your form, and INPUTID being the input id. You could further add to this by using the same method on the Display Show/Hide, then that way the User wouldn't see it unless they select 'other'.
Hmmm, thanks man. I couldn't see a condition on the required validation attribute?
I thought of the show/hide option, but wouldn't the text area still be required even though it is hidden?
I would prefer to use your first option so the text area is still available for other select options, but only required for 'Other' values. I will see if I can find that option. That is eactly what I am looking for but can't seem to find it.
Some inputs and other things have even more options under the Dynamic Attributes. Worth just creating a test page and playing around and see what results you get. I've found loads of Easter Egg type things that way. I couldn't reel them off though. Sometimes I am so surprised what I needed was there I am totally dumbstruck. Praise to the Team for including them all.
EDIT.
I had a think and there are some great ones for Leaflet maps I discovered. Pretty sure of it...