How to add help text to new attribute at list collector

Jayakrishna3
Tera Contributor

I have added new attribute to list collector If they choose specific attribute I need to show help text to them along with link.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Jayakrishna3 

Please test the below script for single selection of the value and check.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
 
if(g_form.getValue('listcollectorvariableName').indexOf('sysId') > -1){ //sysId will be replaced with sys_id of the value selected in list collector
g_form.addInfoMessage("<a href='Link' target='_blank'>Help Text Details</a>");
}
 
}

View solution in original post

7 REPLIES 7

Hi Monica, I have already tried with above script but doesn't work. I have written script on particular variable set. In case if we want write on attribute side how we can achieve in the script.

 

Community Alums
Not applicable

Hi @Jayakrishna3 

Please test the below script for single selection of the value and check.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
 
if(g_form.getValue('listcollectorvariableName').indexOf('sysId') > -1){ //sysId will be replaced with sys_id of the value selected in list collector
g_form.addInfoMessage("<a href='Link' target='_blank'>Help Text Details</a>");
}
 
}

if(g_form.getValue('listcollectorvariableName').indexOf('sysId') > -1) in this line instead of getvalue i used getDisplayValue