Hide field but make visible based on selection

_Alex
Tera Contributor

I have a category and subcategory field on the change form

Category field contains A, B, C on drop down

 

I want the subcategory to be hidden unless I select 

When I seland I would like for this field to remain hidden

 

I can easily achieve this via a ui action but not sure how to get it done on the workspace 

 

How can I achieve this 

 

Currently it is working on backend of the form via ui action but does not work on the backend 

 

 

1 REPLY 1

Community Alums
Not applicable

Hi @_Alex ,

 

Your question is not so much clear, but if I able to decipher it, you can do it using OnChange client script.

 

g_form.setVisible("FIELD_NAME", true/false); 

 

Put the above line of code based on the condition.

 

Please mark the answer as correct and helpful, if I was able to answer your query. It will be helpful for others who are looking for similar questions.

 

Thank you,

Santosh Poudel