change help text dynamically based on a value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 11:44 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 09:25 PM
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";