Fields are made invisible using UI policy on form. But when try to open the popup from list view using reference icon these fields are still visible. Is it a bug?

shivanagouda
Kilo Contributor

Fields are made invisible using UI policy on form. But when try to open the popup from list view using reference icon these fields are still visible. Is it a bug?

Attached screen shot. After mouse hover the popup opens and the field outage planned duration is visible.

But on form level   it visible only on selection of outage required using UI Policy. So on attached screen shot(popup) the field outage planned duration   should be invisible as per condition(outage required is not checked). Please advise how to fix it.  

1 ACCEPTED SOLUTION

Andras Kisgyorg
Kilo Guru

Hi Shiva,



I don't think you can achieve this with UI policies as they I don't think they run when you hover your mouse over the ( i ) and see the popup, even if the UI policy is set to view = sys_popup.



You could try achieving this by using a read ACL on the field, where you set the conditions properly:


when the ACL allows read to the field, it will show up on the form and the popup, when the ACL evaluates to false, it should be hidden both from the form and the popup.



On top, you vcan keep your UI policy to add a dynamic behaviour to show/hide the field on your form based on user interactions,


while the ACL should show/hide the field based on record data saved in the database.



Make sure to check if ACLs are running on the same field or on parent tables so that they do not interfere, and set "Admin override" accordingly so you as an admin see the impact of your ACL.



Hope this helps, let me know.



Best regards,


Andras


View solution in original post

9 REPLIES 9

i have attached the screen shot. Please advise.


Shiva,



I would request you the change the order number of your UI Policy, keep it as 500 or 1000 and then try.






Please Mark Correct / Helpful as per the impact


Abdul Azeez


shivanagouda
Kilo Contributor

Hi Abdul,


I have tried UI policy setting up order to 500 and 1000, but not working still.



Thanks,


Shiva


Andras Kisgyorg
Kilo Guru

Hi Shiva,



I don't think you can achieve this with UI policies as they I don't think they run when you hover your mouse over the ( i ) and see the popup, even if the UI policy is set to view = sys_popup.



You could try achieving this by using a read ACL on the field, where you set the conditions properly:


when the ACL allows read to the field, it will show up on the form and the popup, when the ACL evaluates to false, it should be hidden both from the form and the popup.



On top, you vcan keep your UI policy to add a dynamic behaviour to show/hide the field on your form based on user interactions,


while the ACL should show/hide the field based on record data saved in the database.



Make sure to check if ACLs are running on the same field or on parent tables so that they do not interfere, and set "Admin override" accordingly so you as an admin see the impact of your ACL.



Hope this helps, let me know.



Best regards,


Andras


Thanks Andras, It worked.