If a assignment group does not have any user the form is not able to submit/update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 03:08 AM
Hi Everyone,
I have a small requirement related to assignment group if a user is select any group in assignment group and the group does not have any member so the user cannot submit or update the form but if it has any user then it will submit.
I use client script onSubmit.
My script:-
But when I check it. It does not submit record if user is in group as well as user are not.
Every help will be grateful
Thanks and Regards,
Suyash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 03:15 AM
You need to use Script include to find whether the group members are there in the group and based on that you can you can display alert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2024 04:53 AM
Hi @Suyash Joshi,
To achieve this, you're going to have to perform a lookup and invoke a server call. This is achieved via Script Include from your Client Script. The good thing is I've supplied the 2 scripts needed below.
Please note, you won't be able to achieve this via the onSubmit due to the nature of the lookup so it's best implemented via an onChange event so the users are advised when they are selecting the value. I've handled this in the client script for you with a field message advising the user(s).
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
Client Script:
Type: onChange
Field name to action on: Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2024 02:34 PM
Hi @Suyash Joshi,
Thanks for marking my response as helpful. Please let me know what else you would need to implement a solution so I can help close this out. The scripts provided in my previous post have been written so you can simply copy and paste.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2025 02:43 AM
Hi Robbie,
I have implement your code in my instance to Case table. Unfortunately, its not working for some reason. Anything i need to enable or check further?