Solved

How to use Multiple conditions for a single control in New and Edit Mode

  • 25 January 2017
  • 3 replies
  • 245 views

Badge +6

Has anyone coming up with a solution to initially have a field available conditionally and after submission being able to disable the same control for editing based on a rule

In the example below I used a field called Ranking able to display either Food or Drinks Input selection.

After submission I want to make the same control disabled for editing only allowed by Admins.

 

I have created 2 rules (Hide and a second one for Disable on the same panel) on the same panel and that works.

Is this the recommended way of doing this ?

 

Found a solution for selectively disabling a control based on sharePoint Group membership:

Although not present in the formula builder below seems to work:

not(fn-IsMemberOfGroup("Your SharePoint Group Name"))

 

Regards

Jaap

icon

Best answer by TomaszPoszytek 25 January 2017, 15:53

View original

3 replies

Userlevel 7
Badge +17

I would create an additional field to keep a true/false information whether the form is sent already or not. Then based on the value of the field I would create a rule whether or not to disable/enable your control

So yes - I would add a second formatting rule.

Regards,

Tomasz

Badge +6

Thanks Tomasz for your advise.

Noticed also the solution for the Membership of a group, it's strange this isn't available in the formula builder (it was before I noticed that from earlier screenshots)

Regards

Jaap

Userlevel 7
Badge +17

Err.. I might be wrong but fn-ismemberofgroup not a Runtime but Inline Function and should be declared as.. a string  

Here is a reference: http://help.nintex.com/en-US/O365/O365Forms/Reference%20other/Inline%20functions%20provided.htm

So you should be able to provide the function to make it work. You can look for other questions like this on the forum: https://community.nintex.com/search.jspa?q=fn-IsMemberOfGroup

Regards,

Tomasz

Reply