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.

how to add the placeholder for name-value-pair field

srikanth74
Tera Contributor
 
1 ACCEPTED SOLUTION

Shruti Khaire
Kilo Sage

Hello @srikanth74,

 

You can add a placeholder text to a Name-value pair field on a form. By using the usual method of onLoad client script given below. Hope that helps you!

function onLoad()

{

var varialeName = g_form.getControl('u_name_value_pair');

varialeName.placeholder ="{\"123\":\"123\"}";

}

 

Thank you!

View solution in original post

3 REPLIES 3

Shruti Khaire
Kilo Sage

Hello @srikanth74,

 

You can add a placeholder text to a Name-value pair field on a form. By using the usual method of onLoad client script given below. Hope that helps you!

function onLoad()

{

var varialeName = g_form.getControl('u_name_value_pair');

varialeName.placeholder ="{\"123\":\"123\"}";

}

 

Thank you!

srikanth74
Tera Contributor

yeah I used but still it is not working