- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 02:48 AM
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.
Thank you for your assistance,
Smith.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2022 03:06 AM
Hi,
Unfortunately that is not possible. All you can do is use showFieldMsg() instead in a Client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 08:09 PM
Hi @Chris Hatch ,
Your code is working when there is no instruction text on form load.
When I select value as 'new_role' after form load - Screenshot 1
When I select value as 'remove_role' after form load - Screenshot 2
But the issue is:
After selecting 'new_role', if I change selection to 'remove_role', then it is still like Screenshot 1.
Meaning - it is not changing to help text of 'remove_role'.
My code is given below:
if (newValue == 'change_role' || newValue == 'new_role') {
var infoField = g_form.getField("additional_information");
infoField.expand_help = true;
infoField.instructions = "<p>The technical names of the Roles can be written here.</p>";
} else {
var infoField = g_form.getField("additional_information");
infoField.expand_help = true;
infoField.instructions = "<p>Please indicate the date from when the roles can be removed.</p>";
}
Screenshot 1:
Screenshot 2:
Please mark this post as a solution and also as helpful, if this resolves your issue or query.
Thanks,
Subhadeep Ghosh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 02:58 AM
@subhadeep1618 this is not working on sc_task please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 02:50 AM
hi @Chris Hatch not working in sc_task please help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2023 08:17 AM
AYou can also create couple label fields to be shown by selection from Activity field.
You could control the visibility of the label fields by UI Policy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 07:51 AM
I think there's a bug in the Community because I couldn't find @Chris Hatch 's original post.
Worked perfectly for me on a Tokyo Patch 5, so a big thank you and summary for my own benefit.
Catalog Client Script:
var f = g_form.getValue('FIELD_NAME');
if (f) {
f.help_text = 'OVERWRITE_MSG';
}