Tooltip on Variable Set, but only for one catalog item

AmyB
Giga Contributor

Does anyone know if it is possible to use a tooltip on a variable set, but only have that tooltip show up for one specific catalog item? Or even help text? Trying to set up a note of some sort on one catalog item in regards to this variable set, but the variable set is used on 13 other catalog items and obviously do not want that note to show for all of those other catalog items. Any help is appreciated.

2 REPLIES 2

Saurav11
Kilo Patron
Kilo Patron

Hey

You can use g_form.showFieldMsg and then control its visiboty in the script itself

Please mark answer correct/helpful based on impact

Hitoshi Ozawa
Giga Sage
Giga Sage

Create a variable set with fields in variable set. Instead of defining client script inside the variable set, create an onLoad client script on the form that requires message to be displayed.

function onLoad() {
      g_form.showFieldMsg('field1', 'message only one form');
}

The message will only appear in the form that has the client script and won't appear in other forms that's also using the same variable set.

Execution result:

1. Form with client script.

find_real_file.png

2. Form without client script using the same variable set.

find_real_file.png