How to hide the field in the form on load

v_nagajyothi
Mega Contributor

How to hide the field in the form on load

5 REPLIES 5

bharu
Kilo Expert

To hide fields onload, create UI policy with no conditions in it.


tejumes
Kilo Guru

To hide a field on a form Just create UI Policy



Open a form and right click and configure and chose UI Policy.


Give the name and in condition you can keep empty or if you want to specify for particular value on the form when load this hide should happen ( specify optional)


Click on save


Now chose which   field to hide in UI Policy action and set Visible to False.


This will hide the field on form when load.


( Please not if you use advance view you can see OnLoad option checked by default)



Hope this Helps.


Please select correct answer or the tips provided is helpful


rajmasurkar
Giga Guru

Hi,



You can create a UI policy for this.


While creating ui policy check the On load check box to run the policy on form loading.


Below is the snap for your reference.



UI policy.jpg





Raj


Vikas-Malhotra
Mega Guru

Hi Veeramachaneni,



Yes UI policy is the best practise to hide the fields of form onload. But, still if you want to try some other way also.


You can create a onload client script and hide your fields like this as well:


g_form.setVisible(fieldName, false);   // If second argument is true field will be visible.



Hope its helpful.



Thanks and Regards,


Vikas Malhotra