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

Jan Cernocky
Tera Guru

Hi,

I guess the best way is to create an onLoad script, ideally with some condition (e.g. Change Category is ...) and fill in the fields by simply calling g_form.setValue().

Aman Kumar S
Kilo Patron

Hi @SNOW

You can follow this no-code approach in the field:

Catalog Data Lookup Definition on any table, eliminating Catalog Client Scripting

Best Regards
Aman Kumar

Aman Kumar S
Kilo Patron

You can use below link to achieve the same:

Configure suggested text for string fields

Best Regards
Aman Kumar

Mark Manders
Mega Patron

You can use an onload client script like below (this doesn't set any 'values' in the fields, making it possible to make fields mandatory. Also you don't have to delete text before entering your own. Just start typing.

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";   
}

If my answer helped you in any way, please then mark it as helpful. If it resolved the issue, please mark it as correct.

Mark


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark