How can i add a help text under the checkbox

Naresh291
Tera Contributor

Hi ,

I have to add a help text under a checkbox .but i see no help tag option in there . I tried using the addinfomessage but the look isnt coming good.

Any other suggestions to achieve this.

7 REPLIES 7

Aman Singh_
Kilo Sage

Hi,

 

You can use g_form.showFieldMsg.

Please mark Correct✅/helpful???? if applicable, thanks!!

Aman

Aman Singh_
Kilo Sage

@Naresh29  you can refer to the support article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0712308 as well, which tells you how to get the help text field for checkbox variable.

 

Thanks,

Aman

Ankur Bawiskar
Tera Patron
Tera Patron

@Naresh29 

As mentioned in KB article shared by Aman Help text is not supported for Checkbox variables.

Adding to Aman's point.

You can use field message via onChange Catalog client script to show the field message always

Catalog Client Script: onChange of that checkbox

UI Type - ALL

Applies to Catalog Item View - True

function onChange(control, oldValue, newValue, isLoading) {

	var message = 'Your message here';
	g_form.showFieldMsg('variableName', message,'info');

}

Regards
Ankur

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

@Naresh29 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

If not, please let us know if you need some more assistance.

Thanks!
Ankur

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