Restrict Parent Assignment Groups from Being Selected in Assignment Group Field

RahulS005039023
Tera Contributor

Our organization maintains a hierarchical assignment group structure where some groups act as parent groups and others act as operational support groups.

Example:

  • Parent Support Group
    • Support Group A -> User1, User2....
    • Support Group B -> User3, User4...
    • Support Group C -> User5, User6...

Parent groups are used for organisational structure, reporting, and administration purposes, while work should be assigned only to the operational child groups.

 

Requirement

When a user selects a parent group:

  • The selection should be restricted.
  • A validation message should be displayed.
  • The user should be required to select an operational (child) group instead.

Example message:

Parent assignment groups cannot be selected. Please choose a valid support group.

 

I do not want to hide parent groups using a reference qualifier because the business wants users to be able to view the complete group structure.

Instead, the requirement is to:

  1. Allow parent groups to appear in the lookup/search results.
  2. Detect when a parent group is selected.
  3. Show a warning or error message.
  4. Prevent the parent group from being used as the final assignment group.

I would appreciate any best practices or alternative approaches from the community.

1 REPLY 1

Ankur Bawiskar
Tera Patron

@RahulS005039023 

best approach is to use onChange client script + GlideAjax

what did you start with and where are you stuck?

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏