Skip to main content
Nintex Community Menu Bar

Custom Validation with \Tabs\" and panels"

  • Feb 1, 2017 4:08 AM UTC
  • 7 replies
  • 43 views
  • Translate All

Forum|alt.badge.img+3

I have a form with radio button options being displayed as 3 buttons, these 3 buttons will display three different panels. Depending on the button that is selected there will be different validation required.

For example, button 1 will have a requirement of "Name", if I have selected button 2, I don't want "Name" to be a required field when I go to save the item. How do I add validation to a Textbox (or anything) that will only be required if the correct button is selected?

7 replies

Forum|alt.badge.img+5

try writing condition in this format equals(Control, Value) instead of IBCRequestType == "Reporting of Gifts"

Translate

Forum|alt.badge.img+12
  • Nintex Partner
  • Feb 1, 2017 7:07 AM UTC

For troubleshooting purposes, could you place a formula control on your form and have it display the value of your variable IBCRequestType? Just to make sure the value is updated correctly when you hit any of the other buttons.

The formula seems to be ok.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • Feb 1, 2017 2:01 PM UTC

I have tried this and get the same result.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • Feb 1, 2017 2:02 PM UTC

I have added the formula control and it is changing to the value of the selected button.

Translate

Forum|alt.badge.img+12
  • Nintex Partner
  • Feb 1, 2017 2:15 PM UTC

Hmm ok, thats strange then.

In your first screenshot I see that the field Name is connected to the column "Recipient Name". Can you make sure that the field is not marked as mandatory in the SharePoint Columns Settings screen?

If the column is configured to "must have values" it will always be mandatory, no matter what rules you apply in Nintex Forms.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • Feb 1, 2017 2:22 PM UTC

Well this is embarrassing...that field was marked as mandatory (although it isn't supposed to be). I can't believe that I totally missed that. You have no idea how much time I have spent on just modifying the form. Can we just delete this post in its entirety?? lol

Thanks for all your help, I have gotten this working with my original formula.

Translate

Forum|alt.badge.img+12
  • Nintex Partner
  • Feb 1, 2017 2:26 PM UTC

Don't be worried. I could only imagine that solution because I had the same ... uhm, solution in the past. grin.png

Translate