Home › Forum › General › Check Mandatory not working in read only and previously hidden fields › Re: Check Mandatory not working in read only and previously hidden fields
I would work on the premise of K.I.S.S myself and probably wouldn’t look to over complicate things by changing properties of the object although I can see that may have some benefits.
Adding a red * is a very effective way of highlighting to users visually that a field HAS to be answered (in this case the dropdown and not the fields that are populated from the selection of the dropdown that may be hidden/read only), supplement that with a conditional script based on the ‘selection made’ and/or even use the ‘mandatory answer’ setting where you can define the specific message to present referring to the object they have to complete (you will need to publish to see how this works, it won’t show in ‘preview’ but check that out on a simple test form to see how it works
as to the drop down itself, that you are populating from a connect action. Have you looked at following the ‘connect’ action with a ‘Set Field’ action to the drop down where you set the value to <nothing>
I’d suggest setting up a simple test form where you can populate the dropdown similar to you have here already but then add on a button and under that button add a ‘set field’ to set the ‘caption’ of the dropdown and then in the value section.. select ‘text or number’ and add in a SPACE to the entry field, and then preview the form, get the drop down to populate (ie as you see at the moment) but then run the script under the other button to see how it sets the drop down to ‘not selected’ and then your ‘check mandatory’ will do what you want
Also though in terms of finding the most appropriate methods and seeing things like this, use the same ‘simple test form’ premise to check out other options. It can be easier to see how things work but also if you then have something that you think isn’t correct a lot easier to send over to us with details of what you see, what you want so we can see more clearly as well. And if there is something we can see that isn’t correct, getting that ‘example’ to the developers to check out is also then a lot easier