Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Make email field mandatory when user creates a new group

Payal Tripathy
Tera Contributor

How to make the Group email field mandatory when a user creates a new group and has the Admin role.

5 REPLIES 5

Not applicable

Use UI policy

Sandeep Rajput
Tera Patron

@Payal Tripathy You can use a UI Policy or a client script to make the group email field mandatory. 

Rushikesh
Tera Expert

@Payal Tripathy 

Create UI Policy or Client Script (both should be on-Load) on sys_user_group table

 

Screenshot 2024-05-07 at 10.52.53 AM.png

 

 

If this answer is helpful please mark correct and helpful!

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
}