how to hide field on load and appear on submit

jho
Kilo Contributor

How to I hide field on load and make the field appear on submit? I have managed to create a UI policy that allow me to hide a field on load.

How do I make the field appear on submit?

7 REPLIES 7

achacko
Kilo Guru

Hi Jason



If I understood your question correctly, you have to mention the conditions in UI policy. I've provided an example below.  


find_real_file.png


Regards



Anil


jho
Kilo Contributor

Hi Anil,



I have created a UI policy to hide a field on load (See below)


find_real_file.png


but now I want to make this field appear when click on the Save or submit button. Can I use a UI policy to do this or do I create a client script?


achacko
Kilo Guru

Hi Jason



You can achieve this by UI action.



How to hide/show an UI action on field changes



Regards



Anil


Shishir Srivast
Mega Sage

I don't think it's possible, onsubmit client script will run when the form is submitted and once the form is submitted, the form will get reload again and that will trigger the onLoad() client script, why not we can try like. Let's hide the field and then when certain condition met (example if state changes to resolved) then make the field visible in onLoad() client script.