How to make field required within panel of nintex form with Sharepoint 2013

  • 29 August 2019
  • 3 replies
  • 30 views

Badge +4

I created a nintex form with Sharepoint 2013. The form hides and showes two sheets based on selecting - Sheet One / Sheet Two. Within each sheet, there are two required fields that must be enter to submit the form. I tried to apply rule on the field:  isNullOrEmpty({Self}) && Selection == "Sheet One", but it does not work. even I just apply isNullOrEmpty({Self}) rule on the field, it does not stop the submission when I do not enter anything in the field. Anyone know why? how to do it? 

 

I also tried to set fields as " required" in Sharepoint list column, but they stop submission when selected Sheet One and filled all required fields within Sheet One since Sheet Two has required fields, but they are not needed to fill in when select Sheet One. 


3 replies

Userlevel 6
Badge +22

Hi,

 

Apply a rule on each panel to hide when the other panel is selected.

 

Panel 1 Hide rule

equals(PanelSelect,"Panel 2")

Panel 2 Hide rule

equals(PanelSelect,"Panel 1")

Now make sure that validation only occurs when the panel is selected.

 

For the controls inside Panel 1, Validation Rule

and(equals(PanelSelect,"Panel 1"),isNullOrEmpty({Self}))

For the controls inside Panel 2, Validation Rule

and(equals(PanelSelect,"Panel 2"),isNullOrEmpty({Self}))

Attached form is a Responsive form which demonstrates this POC.

Badge +4

thanks Simon. 

and(equals(PanelSelect,"Panel 1"),isNullOrEmpty({Self}))

I applied above rule but still not working. Actually, my 1st hide panel rule is 

 not(contains(PanelSelect,"Panel 1")), and it works. should I change to

and(contains(PanelSelect,"Panel 1"),isNullOrEmpty({Self})) ?


@SimonMuntz wrote:

Hi,

 

Apply a rule on each panel to hide when the other panel is selected.

 

Panel 1 Hide rule

equals(PanelSelect,"Panel 2")

Panel 2 Hide rule

equals(PanelSelect,"Panel 1")

Now make sure that validation only occurs when the panel is selected.

 

For the controls inside Panel 1, Validation Rule

and(equals(PanelSelect,"Panel 1"),isNullOrEmpty({Self}))

For the controls inside Panel 2, Validation Rule

and(equals(PanelSelect,"Panel 2"),isNullOrEmpty({Self}))

Attached form is a Responsive form which demonstrates this POC.


 

 

Userlevel 6
Badge +22
HI,
Did you test the sample form I attached to my last post?
Does that work for you?

Reply