g_form.setDisplay('variable_name', false); not working in service portal

ARNAB3
Giga Expert

g_form.setDisplay('variable_name', false); not  working in service portal where as its working in legacy view properly   - what  I need to do  to make it work in service portal.

1 ACCEPTED SOLUTION

Dhananjay Pawar
Kilo Sage

Hi,

May I know, in which script you are applying this?

Check UI type of script it should be set to ALL

View solution in original post

5 REPLIES 5

Sajilal
Mega Sage

1)Is it a client script? If yes check the UI Type and make sure its set to All.

2) Try setVisible instead

3) Also check if any fields are supposed to be mandatory and because of which the field is not showing up/hiding.

4) If its a variable set, then it wont work for setDisplay in Portal due to limitations.

Please Mark as Correct if this solves your issue and also mark ???? Helpful if it helps resolve your problem.

Thanks,
Saji