- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 03:30 AM
Hello,
In my case I have two fields on my form. Like "Assigned to" and ''Assignment group".
Condition :
Whenever the user first selects any user from the Assigned to me field then he has get only the records of the groups that he belongs too in the Assignment group.
Vice versa, if user first selects any particular group from the Assignment group field then he has to see only the records of particular user who belongs to the selected group.
I have written a script include for this, but unfortunately it is not giving me the expected output.Please look at the script and let me know the error.
Reference Qualifier of Assignment group field.
Reference Qualifier of Assigned to field.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:11 AM
Hi Bharath,
You have not defined the variable user and group. You should update it with Assigneduser at line 8 and getting at line 20 in the if condition. These are the variables that you are calling in the function.
Regards,
Deepankar Mathur

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 03:37 AM
Remove the dot after new:
javascript:new global.Assignedto()....
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 03:44 AM
Hi,
The second function which is there in the above snip it is not executing.
Kindly can u pls check at line no 8 and line no 20

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:11 AM
Hi Bharath,
You have not defined the variable user and group. You should update it with Assigneduser at line 8 and getting at line 20 in the if condition. These are the variables that you are calling in the function.
Regards,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:19 AM
Hello,
Actually there are not the variables they are the field names of this table "sys_user_grmember".
Do we have an alternate solution to execute the code as expected.
Thanks,