Make a field required based on another field value
2 weeks ago
I want to make attachments field in the form as mandatory based on the previous dropdown selection as Yes or No. If it's a Yes then the attachments needs to be added. Is there a way I can setup a condition for this ? Also can do it like a message pop in case it's a yes and the user directly clicks on submit button ?
You can't actually make a field required. What you can do is to prevent further action from being taken if the field doesn't have anything in it.
You can add a 5 - pointed star icon, color it red and set it's visible property based on the attachment field being blank and on your submit you can make the submit button disabled if the attachment field is blank.