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

Anurag Tripathi
Mega Patron
Mega Patron

Does the same work on native ui?

can you show the field / script?

-Anurag

It works on native UI. 

 

g_form.setValue('environment', rd_environment.toString()); //Tried with toString and without tostring

Add an alert  on this value and see what you get on the portal vs native ui

 rd_environment.toString()

-Anurag

They both are printing same value [prod]