How can I make certain fields Ready Only after submission for Users, but still editable for the Admins?

  • 25 October 2017
  • 6 replies
  • 15 views

Badge +6

After submission, I do not want Users to have the ability to edit their form.  However, I do want to still allow the Admin Group to have editing capabilities.

On the individual control, I am able to use the Is New Mode function as an Enabled Expression.  That makes the field Read Only to all people, Admins included.  Can I extend that 'Is New Mode' function and add in IsMemberOfGroup(Admin) in some way to allow them to still have editing rights?

Trying to avoid JS as I am unfamiliar with it... 


6 replies

Badge +16

have you tried building an expression for that exact condition?

Badge +6

This is as far as I got.

A normal user is able to add a form.  And when they go back in, they are not able to edit this field.  So it works to that extent.  But the Admin is also unable to edit the field.  How can I remove the editing capability to the User, but keep the editing rights for the Admin?

210059_pastedImage_1.png

Badge +16

fn-Or(Is New Mode, fn-IsMemberOfGroup("Admins"))

Badge +6

Awesome!  This works!  Thank you for keeping it simple!

Badge +16

Can you mark the answer as correct to close the thread please?

Badge

Hello...is there a way to make the entire form un-editable after submission, or do we have to do each field individually?

 

Thanks
CK

Reply