Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set Help text ("More Information") for a Multi row Variable set in Catalog Item?

Praveen65
Kilo Contributor

How to set Help text ("More Information") for a Multi row Variable set in Catalog Item?

I am able to do the same at individual variable, but I wanted to set the Variable set Level.

Use Case: User can add a minimum on one row to maximum of 10 rows. We need to display this as Help text.

Version: Madrid Release

4 REPLIES 4

arnoh
Tera Guru

Hi Praveen,

Help text is only available inside the individual variables, no matter what type of variable set you use.

That would show like this:

find_real_file.png

Jace Benson
Mega Sage

An option is to add a macro variable where the help text would be and create a macro (for ui16) also a widget (for service portal) to create the html for the help text.

Chris Hatch
Tera Contributor

For anyone finding this thread, I was able to solve this issue for Service Portal 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. 

Works perfectly in the Service Portal, thanks Chris!

 

Note that this works for fields inside a MRVS but not on the MRVS variable itself.

 

Steve