Make email field mandatory when user creates a new group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 08:04 AM
How to make the Group email field mandatory when a user creates a new group and has the Admin role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 11:54 AM
Use UI policy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 12:09 PM
@Payal Tripathy You can use a UI Policy or a client script to make the group email field mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 10:25 PM
Create UI Policy or Client Script (both should be on-Load) on sys_user_group table
If this answer is helpful please mark correct and helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 11:43 PM
No, it is not working in UI Policy. When a user creates a group then email will be mandatory. I did it in on load client script but its not working.
function onLoad() {
//Type appropriate comment here, and begin script below
var user = g_user.userName;
var role = 'admin';
var grp = g_form.isNewRecord();
if (g_user
.hasRole(role) && grp) {
g_form.setMandatory('email'); // Make the Group email field mandatory
}
}