Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Catalog Client Script to change display label value?

MBarrott
Mega Sage

I have an onChange Catalog Client Script which is checking for change to a name field. 

 

I would like to then have this name display within the display value variable I have on the form. 

 

I've tried g_form.setValue('display_var', newValue); and g_form.setLabelOf('display_var', newValue); but neither have updated the display label. 

 

What's the scripting solution to this?

1 ACCEPTED SOLUTION

MBarrott
Mega Sage

For anyone curious I did some digging and ServiceNow specify that this actually shouldn't be possible and is expected behavior. 

 

This has been addressed on KB0758098: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0758098

View solution in original post

16 REPLIES 16

@Akshay Bhaskar 

please post a new question, share all the details there script, screenshots etc and tag me there as this is an old thread

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar

Could you please review this post I've just made - link