- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 08:57 AM
Hi Team,
I have checkbox with Help text attached to it but whenever i check it the help text get disappear but as per my requirement i have to keep it fixed.
I have attached the help text by using catalog client script onLoad :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:08 AM
@Abhi_007 : Please try changing your script to OnChange by removing isLoading and newValue check, and below is a sample reference to the code that worked in my PDI.
function onChange(control, oldValue, newValue, isLoading) {
g_form.showFieldMsg('test', 'Test Message', 'info');
}
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:29 AM - edited 12-22-2023 09:31 AM
I tried below script on my PDI & it works. Make sure you are creating only onChange client script from Scratch, don't use the onLoad one. Deactivate the old-one & create new one making sure all highlighted values are selected properly -
Make sure to update the variable name in form & in script. Also update catalog-item name as well.
If it solves your issue, please ACCEPT it else please mark helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:24 AM
@Abhi_007 : Deactivate your Onload client script. This Onchange will work even for onLoad, as we removed the isLoading validation. Could you share a screenshot of your script to help us better? The script that I posted worked for me. Make sure that your OnChange script is configured in your checkbox variable.
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:29 AM - edited 12-22-2023 09:31 AM
I tried below script on my PDI & it works. Make sure you are creating only onChange client script from Scratch, don't use the onLoad one. Deactivate the old-one & create new one making sure all highlighted values are selected properly -
Make sure to update the variable name in form & in script. Also update catalog-item name as well.
If it solves your issue, please ACCEPT it else please mark helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:32 AM
Thank you so much @H S B @Sainath N for your prompt response. It is working now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 09:37 AM
Welcome. Cheers Mate 🙂