In this post we will discuss how we can apply rules in Nintex forms for Office 365. If you are just starting Nintex forms, kindly check Working with Nintex forms for Office 365.
In this particular example, I have customized a list form using Nintex forms. To do this, Open the list and from Ribbon click on Nintex Forms like below:
Also you can read:
– SharePoint 2013 Online Content Search WebPart with Query String
– Keyword query language KQL in SharePoint 2013
– SharePoint 2013 Get SharePoint List or Document Library GUIDs using PowerShell
This will open the Nintex forms designer and your Nintex form will open. Here i have taken a check box and based on check box checked or unchecked I am showing or hiding a section. So I have drag and drop a check box from General controls. Then double click on the check box control to change few properties of the control. Here I have given a Name and Text as “Do you want to give comment?” this will appear after the check box. So the properites will appear like below:
Then I drag and drop a Pannel control to the form. Now Inside the pannel control I have drag and drop a single line of textbox. Here the UI should look like below:
And the requirement is If user checked the check box then the panel should appear and if user uncheck the check box the pannel should get hide.
Here we will write rule on the panel control. Just select the panel control and from Ribbon click on Add Rule button as shown in the fig below:
Then the Rule builder will open, give a name for the rule. Select the Rule Type as Formatting. The click on the fx icon to write the condition. This will open the Formula Builder. Here expand the Named Controls and select chkComment which is our check box name. The expand the Operators and choose != and write true. It should looks like below:
And then in the Formatting section choose “Hide” check box. So as per the formula if checked box is not true (not selected), then it will hide the control. Your rules should looks like below:
Now to try out this Publish the form and then Open the form and then check / uncheck the checkbox you will be able to see the result.
Hope this will be helpful.