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.

Add example text on Change Request form fields

SNOW46
Tera Contributor

Hello Team,

I want to add some example text on the Change Request form fields which will be helpful for the users while submitting the Change Request.

find_real_file.png

I want to add some text inside the boxes displayed per the screenshot. Can anyone help me out on this?

 

Thanks

7 REPLIES 7

Hi,
The above script is not working in Agent Workspace view.
Please assist!

 

Hi @SNOW46 

- Create below onLoad client script

- Make sure the 'isolate script' column for this script is set to false (Default is set to true to prevent DOM manipulation) 

function onLoad() {
	//Declare the field variables that need a placeholder and get control over them
	var shortDesc = g_form.getControl('short_description');
	var desc = g_form.getControl('description');

	//Create the placeholder text(s) for the fields
	shortDesc.placeholder = "Give your short description here";
	desc.placeholder = "Please explain in detail what your issue is";   
}

Please mark reply as Helpful/Correct, if applicable. Thanks!

Hello Ram,
This particular approach is not working in Service operation workspace.
Any solution for the same?