Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 08:47 AM
Just for sanity check, I modified a line of code to add multiple users.
Before code was
if (g_form.getValue('add_remove_group') == 'add') {
var adminRole = g_user.hasRole('admin');
if (adminRole) {
g_form.setVisible('add_multiple_users', true);
After Code is
if (g_form.getValue('add_remove_group') == 'add') {
var userRole = g_user.hasRole('group_manager');
if (userRole) {
g_form.setVisible('add_multiple_users', true);
Please not very good with JavaScript, can someone please confirm if I am on the right track
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 08:50 AM
Looks good June.
You can always test client side code using JavaScript debugger (ctrl+shift+Alt+j) on the form
-Anurag
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 08:50 AM
Looks good June.
You can always test client side code using JavaScript debugger (ctrl+shift+Alt+j) on the form
-Anurag