Query on catalog Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 07:55 AM
Hi All,
I have a variable on catalog form as requested_for.
How to check if this user is part of a specific group and clear a value on the other variable (select box) if not part of the group.
Thanks & Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 10:15 AM
Hi @Joshuu ,
You can use below script
if (isMember === 'false') {
var selectedRole =g_form.getValue("selectbox_varible");
if (selectedRole === 'admin') {
g_form.setValue('other_variable_to_clear', '');
}
}
Please mark it as helpful and solution proposed.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 06:57 PM
Hi @Anand Kumar P ,
Actually, It is not working as expected. I have followed the below thread as well. Do you have any suggestions on the same?
Thanks & Regards.