How can I add text after a variable box to appear?

plehmenk
Giga Contributor

I have been asked to add some text AFTER an answer to a variable is entered.   Such as:

Alias name for email:

__________________ @arccorp.com

The requestor would only need to include the first part of the email address.   Is there a way to do this?

Thanks.

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Patty,



You can create a business rule on the table. You can have a script like


var str = current.short_description+'@arccorp.com'; // I am assuming short_description is my field column name of the short description.


current.update();



NOTE: Don't use current.update() if you are creating a before business rule.


Mike Allen
Mega Sage

You could also add a Catalog Client Script that looks like this:



Capture.PNG