The Zurich release has arrived! Interested in new features and functionalities? Click here for more

onSubmit script

dev_K
Tera Contributor

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?

 

 

dev_K_0-1723016723677.png

 

7 REPLIES 7

Jake Sadler
Kilo Sage

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

Anubhav24
Mega Sage
Mega Sage

Hi @dev_K ,

Can you post a screenshot of the values using an alert?

Bhavani Shankar
Tera Guru

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

Regards,
Bhavani Shankar
Linked In

mihirlimje867
Tera Guru

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.