- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 05:10 AM
I have added new attribute to list collector If they choose specific attribute I need to show help text to them along with link.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 06:12 AM - edited ‎09-18-2024 06:14 AM
Please test the below script for single selection of the value and check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 05:37 AM
Hi @Jayakrishna3 ,
For a list collector type variable, there will be a list of values would be displayed , if the user chooses any one of them, it should display the help text and link.Can you confirm , if you are mentioning related to values or attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 05:38 AM
Yes Monica
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 05:49 AM
Yes Monica, Its values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 05:50 AM - edited ‎09-18-2024 06:38 AM
If you relating to the values selection on the list collector , please find the below onChange client script:
// Check if the new value
if (newValue === 'specific_attribute_value') {
// Display help text
g_form.showFieldMsg('your_field_name', 'Here is the help text. <a href="your_link" target="_blank">Learn more</a>', 'info');
} else {
// Clear the help text if a different attribute is selected
g_form.hideFieldMsg('your_field_name');
}
}
Please check, if this helps