Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Display help text for a multiple choice variable choice

Tim Saunders
Kilo Sage

Is it possible to display help text for a multiple choice variable choice? I don't want to show text for the multiple choice variable itself, just for a specific choice within the variable.

1 REPLY 1

Priyanka0402
Mega Sage

Hello @Tim Saunders 

You can use the g_form.showFieldMsg() and must create an onChange() client script that runs when the field above is selected.

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

if (isLoading || newValue == '') {

return;

}

var val = newValue;

if(val == 1)

 

g_form.showFieldMsg('type_of_request' , 'Message you want to dispaly.' , 'info' , 'true');

}

else if(val == 2)

{

g_form.showFieldMsg('type_of_request' , 'Message you want to dispaly.' , 'info' , 'true');

}

 

}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards

Priyanka