Compare variable value and in a variable set variable value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 06:05 AM - edited 03-07-2025 06:12 AM
Hi All,
Hi All,
I am currently working on a requirement that involves the following:
- A normal variable: assistant_name_to_add
- A variable from a variable set (people_supported_and_level_of_access), which contains a variable: names_of_the_people_supported
I am trying to compare these two variables and clear the values through an onChange script if they are the same. However, I am encountering an issue where the People Support variable is returning an empty value in the alert, even though it has a value.
Below is the code I am using:
Could you please review the code and let me know what I might be missing?
Your assistance in this matter would be greatly appreciated.
Thank you in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 03:54 AM
I hope you are doing well!
Did it work ? Was my reply helpful?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 10:48 AM
@Medi C ,
Thank you for your response, That's worked for me. I have added the below line to that code:
I hope your clear understanding on my requirement.
I need more scenario I'm using the client script currently on change of assistant_name_to_add but in case I need to use the same type of check in case of onchange of name_of_the_people_supported in variable set of variable.
Please let me know if you have any queries
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 10:54 AM
@Sirri
I am glad this worked for you.
You can use the same logic as a catalog client scripts in your variable set.
could you please try that?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 02:20 AM - edited 03-24-2025 02:22 AM
Hi Both Thank you for your response.
I'm trying to achieve this on submit client script using this script but we have another options in action as Remove Assistant & Remove Delegate Access non assistant if we select these option in action when we submit we are getting the this error('Unexpected end of JSON input' ) in JavaScript console. please let know the reason why we are getting this error.
