Fields are not getting set mandatory and read only at a time for change request form by UI polciy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 06:10 AM
Hello,
We are working on change request table and we want "Risk" field must be read only and mandatory. For that we have created UI policy. But it is showing field as a mandatory and not readOnly we want "Risk" field must be read only with mandatory.
After that we have change UI policy and set mandatory-leave alone and readOnly- true it showing us risk field read only .
we have check all other fields are getting set readOnly and Mandatory at a time or not but other fields are also not getting set as read only and Mandatory at a time.
Let me know if you have any suggestions.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 06:16 AM
Hi @Shraddha Desai1 ,
You cannot make a field Mandatory and ReadOnly at the same time. A field that is mandatory can't be made readonly. This is how system behaves,
Logically also, think this way. On one side you are saying to the system that field is mandatory i.e. value must be supplied in this and on the other hand you are saying field is readonly which means you can't write anything now both are contradictory to each other, hence system do not allows any mandatory field to be readonly to avoid any ambiguity.
I hope this helps.
Regards,
Kamlesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 06:19 AM
Hello @Shraddha Desai1 ,
yes this is the default behaviour as you cannot make it read only and mandatory at time because if you are making it mandatory it means you need to fill that field with some value but if you make it read only you cant fill which is quite opposite .
You can only make a field mandatory and read only when you have a pre filled value in that field .If some value is auto populated then it can be read only .
Hope this will help you
Mark my answer correct if this helps you
Thanks