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
Still can’t grasp why you want to run a check mandatory on a read only field and especially on a drop down ? even if it was ‘not answered’ and this ‘check mandatory’ ran , the fact that it is read only will mean they can’t do anything and won’t be able to submit the data.
its like setting ‘check mandatory’ on a hidden field… if it fails the user will just see the ‘mandatory field isn’t answered’ message but wont be able to do anything about it
and then where you are populating this drop down from a connect action I can’t see why you want it to be read only there either ? you’d normally use a drop down for users to then make a selection from that list, but if you have it ‘read only’ they can’t
I wonder though, are your fields here initially set to be ‘normal’ (ie editable) and then you are setting them to read only later in other actions and before the submit ? You would normally not do this, but handle how the form field states are defined from the form ‘stage’ and ‘role’
it is a lot easier/cleaner to manage field access this way than by ‘scripts’
but having looked at how a drop down object handles this with/without ‘read only’ there is different response from the check mandatory and I would see this as ‘expected’. You wouldn’t for instance set a field to read only if there was no data that could be entered
regarding your ‘Or it would be nice if you could set what value should be considered as unanswered’ you can do this using a condition based on the selection made and then either run a ‘check mandatory’ or present your own ‘show message’ based on what was either ‘checked or not checked’