Jack2019
Forms Fledgling

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

Jump to solution

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. 

0 Kudos
Reply
3 Replies
SimonMuntz
Nintex Employee
Nintex Employee

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

Jump to solution

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.

0 Kudos
Reply
Jack2019
Forms Fledgling

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

Jump to solution

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.


 

 

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

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

Jump to solution
HI,
Did you test the sample form I attached to my last post?
Does that work for you?

View solution in original post

0 Kudos
Reply