allowing 1 user to edit specific fields in specific forms

  • 2 August 2018
  • 4 replies
  • 5 views

Badge +3

I want to enable a single user to edit two fields on an otherwise uneditable form.

How do I do this?

Form rules are set up to disable EVERY field on the assessment form, if that form has been submitted.

HOWEVER, in particular circumstances, one person has the right to review the assessment and:

add comments in one specific field

CHANGE the the original assessment decision from DECLINED to ACCEPTED

Any ideas how I can allow this?

Thanks

Jacquie


4 replies

Userlevel 5
Badge +14

extend existing rule(s) that disables editing with an expression like

... && not(userEquals(CurrentUser,'UserToBeEnabled'))
Badge +3

Hi Marian, thanks for the suggestion. I have tried this, but I am getting an error saying "There are some problems with the design of this form and it is causing some errors:

'CurrentUser' is undefined".

I have entered the current user in this format

CH/JacquieA

Which is basically my domain username....

Is this correct or should it be written in a different way?

Userlevel 5
Badge +14

'CurrentUser' should have been 'CurrentUser' reference variable from Common Tab in formula builder.

UserToBeEnabled should in form domain\loginname or better claim|domain\loginname (doubled backslash is there by purpose)

Badge +3

Brilliant, this has sorted the issue. Thank you so much for your help! :)

Reply