How to change dynamically the help text of a variable on a portal form?

Smith Johnson
Tera Guru

Hello,

 

is there any way to change dynamically the help text of a variable on a catalog item on portal???

For example, based on the "Activity" field, I would like to change dynamically the help text on the "Additional Information" field.

find_real_file.png

Thank you for your assistance,

Smith.

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Unfortunately that is not possible. All you can do is use showFieldMsg() instead in a Client script.

View solution in original post

14 REPLIES 14

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Unfortunately that is not possible. All you can do is use showFieldMsg() instead in a Client script.

Thanks this might help also 🙂

Chris Hatch
Tera Contributor

For anyone finding this thread, I was able to solve this issue using the .getField() function to dynamically add/change a field's help text. 

Example:

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

 

I only tested this for Service Portal. 

For me following is not working. I thinkg g_form.getField() is deprecated.

g_form.getField("field_name");

 Any examples of using g_form.getHelpTextControl()?