onSubmit script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 12:46 AM
Hi All,
Im trying to populate one field by taking the values of the 4 other fields and to combine it into one value (for the title field). the 'getValue()' however retrieves the values which are not the format I d like to use and GetDisplayValue() method does not work. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:14 AM
Hi @dev_K ,
g_form.getDisplayValue() should work. Is it possible you are using an uppercase G and not a lowercase g in getDisplayValue?
If my answer helped or solved your issue please mark as resolve or kudos it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:30 AM
Hi @dev_K ,
Can you post a screenshot of the values using an alert?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:34 AM - edited 08-07-2024 01:39 AM
Hello @dev_K,
Is this a client script or catalog client script?
If it is a catalog client script and you are trying to getValue from MRVS, checkout this API reference document for instructions on using getValue for MRVS.
GlideForm | ServiceNow Developers
If my response helped, please do leave a thumbs up.
Regards,
Bhavani Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:36 AM
Hello @dev_K ,
Try to used "g_form.save();"
or Please refer this article from servicenow:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0752161
and follow this to GlideRecord.
Please like this reply if you think this will help you.
Thank you.