change help text dynamically based on a value

MMKK
Tera Expert

HI All,

 

Is there any way /script that I can change the help text of a catalog item field based on the selection made on a select box?

5 REPLIES 5

Manmohan K
Tera Sage

HI @MMKK 

 

You can use below code to dynamically set help text

 

 var f = g_form.getField("field_name");
    f.expand_help = true;
    f.instructions = "<p>information text</p>";
    f.help_tag = "More information";