Info message after clicking on related search results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 07:13 AM
when I click on the Related Search Results arrow on the form, I want a info message to be displayed. Any suggestions on how to configure it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 07:45 AM
Hi @Dhanashree1,
please check try this script:
function onLoad() {
var relatedSearchButton = document.querySelector('#related_search_button_id'); // Adjust the selector
if (relatedSearchButton) {
relatedSearchButton.addEventListener('click', function() {
g_form.addInfoMessage('This is your info message.');
});
}
}
Thank you, please make helpful if you accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 07:58 AM
Can you also suggest how can I find the related search button id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 08:14 AM
Hi @Dhanashree1,
please try this script:
function onLoad() {
var relatedSearchButton = document.querySelector('#related_search_button_id'); // Use the correct ID
if (relatedSearchButton) {
relatedSearchButton.addEventListener('click', function() {
g_form.addInfoMessage('This is your info message.');
});
}
}
Thank you, please make helpful if you accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 08:30 AM
Tried this but not working.