On submit

vikasgc1999
Tera Expert

Get value taking null value in on change script but in on su

bmit taking sys id

13 REPLIES 13

@vikasgc1999 Could you please try the following code in your onChange client script (remove the previous code) 

 

var user = g_form.getReference('application_name').it_application_owner;
g_form.setValue('app_owner',user);

and see if this works for you.

@Sandeep Rajput  working fine but if change  application on same form without refresh it shows error in JavaScript console

@Sandeep Rajput @i select some application which having app owner then its showin

vikasgc1999
Tera Expert
 

What is your requirement ? onsubmit client script seems to be incorrect, never heard of g_form.submitted = false, it is incorrect. Also, if you are checking if field is empty then syntax would be simple like below.

 

if(g_form.getValue('app_owner') == '')

{

return false;

}

Please hit like and mark my response as correct if that helps
Regards,
Musab