- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 11:37 AM
Hi All,
Can someone please help me with the catalog client script?
I have two field
1) select_the_type_of_access_required
2) u_description
I need an on change catalog item script
when I select the "type of access" the description should auto fill itself.
Custom table name " u_Azure_role
I have something in place but it wont work 😞
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 11:52 AM
Hello @Thomas98 ,
Is select_the_type_of_access_requireds a reference field?
If so, replace
g_form.setValue('description',u_azure_roles.u_description);
with
g_form.setValue('description',user.u_description);
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 10:53 PM
Hello @Thomas98
You have to use Script Include Call using client script-
Please open the above link and complete your requirement.
Please mark correct answer and helpful for others if it helps you
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:41 AM
Hi Alka,
Yes, the client callable is checked.
I'm building this on a variable set and the client script if on the variable set.
Fields in the variable set
select_role
description
table I'm using on "select role" is " u_azure_roles
This is a custom table with 2 fields
u_role, u_description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 07:18 AM
Hello @Thomas98 ,
Please change the variable name from --> 'var num' to 'var role' in line 5. This will fix your issue.