How show/hide fields in UI page

now_dev
Mega Expert

Hi All,

I am working on a UI page where I have created a couple of fields and I am calling this UI page from Download UI action, mentioned in the below screenshot.

Now I wanted to hide all field excepts Format on loading of UI page. Also If I change the value in format dropdown, further I wanted to show/hide few fields on the UI page.

I have tried couple of ways but nothing is working. Please suggest.

find_real_file.png

3 REPLIES 3

Chuck Tomasi
Tera Patron

You are going to have to do it manually via client script. This will require some DOM manipulation. This may help.



Show and hide several fields using Javascript - Stack Overflow


Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi KS,



We can do this by client script section of UI page. We can do


document.getElementById("id of the element").style.display = "none";



Hope this helps.



Regards


Ujjawal


If I helped you to resolve your query with my answer. Then I would really appreciate if you can mark my answer correct. So that it can be moved to answered list and helpful for future readers.

Regards,
Ujjawal