- user = Users [User_ID == zoho.loginuserid];
- if (user.Role != "Administrator")
- {
- alert("Sorry, you don't have permissions to use this feature.");
- }
It displays the alert box as expected. What I need is a way to just show the alert box, then when user clicks OK, the form would NOT display. I guess I'm looking for a programmatic way to bail out of the script like "exit" or "die" or something.
Although more work, I could wrap all the field display in a conditional statement and show them if user is the administrator, otherwise show a notes field with the message on it.