g_form.setvalue isnt working for lookup selectbox in portal

Kumar38
Kilo Sage

I  have a client script that run on "UI Type = All" and I'm setting values for multiple fields. All of them are working as expected except a lookup select box [Doesn't work only in portal]

7 REPLIES 7

Can you show a screenshot of the script.

-Anurag

 

var url2 = top.location.href;
var cv_state = new URLSearchParams(url2).get("state");
g_form.setValue('environment', cv_state .toString());