phenom94 Posted April 28, 2017 Report Share Posted April 28, 2017 How can I have a checkbox automatically selected (checked) based on a logged in user's group? For example, after a user logs in, I want a checkbox checked automatically if he/she belongs to a particular group. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted April 28, 2017 Report Share Posted April 28, 2017 Let's say you have a field called GroupName in your authentication table and if the GroupName is admin you want to check Approved Checkbox in your submission page. You can use the code below in the footer of the page <script> if ('[@authfield:GroupName]' == 'Admin') document.getElementById('InsertRecordApproved').checked="true"; </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.