Skip to main content
Nintex Community Menu Bar

How to ensure validation inside a repeating row field that depends on another field on that row?

  • June 23, 2018
  • 3 replies
  • 17 views

Forum|alt.badge.img+1

Hi


I have a repeating row. In that I have several input fields. Let's call two of these input fields inputA and inputB. inputA can only take in number. And input B is a free text box. 

I need to make sure that if inputA value is greater than zero, then inputB is filled up otherwise it triggers a validation letting user know which row inputB is not filled up.

How to do this validation?

3 replies

Forum|alt.badge.img+14
  • Scholar
  • June 25, 2018

write a validation rule and assign it to one of controls

formula would look like

InputANamedControl > 0 && IsNullOrEmpty(InputBNamedControl)

Forum|alt.badge.img+1

This does not really work. It does validate initially. However, it fails to validate subsequently.

For example, if I have two repeating rows and the named controls are InputANamedControl & InputBNamedControl.


If I have for row1, both these invalid. Then, it picks up the validation. Now, I fix one of the invalid and press submit. Rather than showing the invalid message, it ends up submitting with the list having empty for that field. :"(


Forum|alt.badge.img+14
  • Scholar
  • June 26, 2018

I'm affraid you might have something misconfigured

it should normally work

216751_pastedImage_1.png

could you post some screenshots how does your design look like and what you experience at runtime?

as well what form platform and version are you on.