Show Help Text Always on Check Box Field on Platform

Sunayana4
Tera Contributor

Hi All,

 

I have tried writing in the label of the field but it is not showing up on the portal form but if I am giving help text in the hint box if it is appearing when I hover over the field on form.

So In order to show the help text I have written this in onload client script:

g_form.showFieldMsg('field_name', 'Help Text', 'info');

it is populating the help text on load and even after saving the form,

but the help text is disappearing when the user clicks the checkbox as true. 

The help text should be visible all the time regardless of onload of form or form is saved or when the checkbox is clicked.

Can someone please help me in achieving this!!!

 

Thanks & Regards,

Sunayana. 

4 REPLIES 4

Community Alums
Not applicable

Community Alums
Not applicable

Hi @Sunayana4 ,

 

UjwalaBedarkar
Tera Expert

Hi @Sunayana4 ,

 

Do you need the help text to be visible all the time even when the user don't want to hover over the check box?

If so then you can try to create a new variable with type as rich text label and add your help text their as below:

UjwalaBedarkar_0-1683728567906.png

Please Mark my response Correct/Helpful based on impact.

Thanks,

Ujwala Bedarkar

 

Muhammad Khan
Mega Sage
Mega Sage

Try onChange() client script on your checkbox variable rather than onLoad(). Below script might help you.

function onChange(control, oldValue, newValue, isLoading) {
   
   g_form.showFieldMsg('backend_name_of_checkbox_variable', 'Testing Mesage', 'info', true);
   
}