Field with lock icon displays briefly when hidden by UI policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 01:03 AM
Hi,
If I add a field with a lock icon, for example a List type field, to a form and then create a UI policy that sets visible to false for this field then every time the form is refreshed the field is visible shortly. Then the field is hidden and the fields below it move up.
Is there any way that I can prevent this behavior?
- Labels:
-
Multiple Versions
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 01:11 AM
Hello Mark,
Try with onLoad Client script. add below line of code:
g_form.setReadOnly('FieldName',true);
Client Scripts execute First, then UI Policy . If there is conflicting logic between a Client Script and a UI Policy, the UI Policy logic applies.
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 04:01 AM
I already tried with g_form.setDisplay (I don't want to make the field read-only but hide it), but this behaves exactly the same as using a UI policy.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 04:03 AM
Hi
Try with g_form.setVisible() once.
Regards,
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 04:06 AM
This behaves the same except that the other fields do not move up as the space of the field is retained.