On submit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 10:57 AM
Get value taking null value in on change script but in on su
bmit taking sys id

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 11:24 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 11:35 AM
@Sandeep Rajput working fine but if change application on same form without refresh it shows error in JavaScript console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 11:40 AM - edited ‎01-19-2024 11:40 AM
@Sandeep Rajput @i select some application which having app owner then its showin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 11:00 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 11:16 AM
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;
}
Regards,
Musab