Skip to main content
Nintex Community Menu Bar
Solved

How to validate list item viev

  • Jun 6, 2022 11:23 AM UTC
  • 9 replies
  • 310 views
  • Translate All

Forum|alt.badge.img+2

Hello,
I have problem with my process in K2Workflow. I have editable list view and user can send form with empty field, because when u had more than 2 items and u click on list row which is correct, my rules dont validate evry single row in list. How validate evry row in editable list? More over you can add an item with emty auto complete field if u just click on another item. 

Best answer by tbyrne777

I think I see what is happening - it looks like you are looping through each value in an autocomplete control. What you want to do is loop through each item in the list view. Please see the attached steps

View original

9 replies

Forum|alt.badge.img+15
  • Nintex Partner
  • Jun 6, 2022 11:03 PM UTC
You can create a "Validate" rule that loops through all rows in your list and check that they all have valid values and prevent the form from submitting if they do not. Let me know if that gets you pointed in the right direction or if you need more details.
Translate

Forum|alt.badge.img+2
  • Novice
  • Jun 7, 2022 8:19 AM UTC

An alternative would be to use a sub-view or sub-form for the adding/editing of records. That way you can implement the standard required field validation (and any other validation) of the record before it is added to the list view.

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jun 13, 2022 12:55 PM UTC

Hello,

It didn't work, maybe I made the wrong rule. 

Can you help me?

 

Translate

Forum|alt.badge.img+15
  • Nintex Partner
  • Jun 13, 2022 2:28 PM UTC
What part didn't work? What does that Advanced Condition look like, I assume it is testing values from the SmartObject context as that represents the current row in the loop
Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jun 14, 2022 9:30 AM UTC

This is advanced condition

and as u see if u click on the row which is correct still u can send form with empty auto complete control. 

 

Translate

Forum|alt.badge.img+15
  • Nintex Partner
  • Jun 14, 2022 6:50 PM UTC
Did you drag that field on the left side from the "SmartObject" context? It should not be a control, but a field on the SmartObject
Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jun 15, 2022 8:52 AM UTC
But this rule work in case when I click on the row which have empty field, but I want to validate all row's even not chosen. So I'm in the same place without your "validate rule" because this rule don't validate all record's but only record's i one click, and they are chosen.
Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jun 15, 2022 11:37 AM UTC

Even if I drag field from "smartobject" rule don't work.

 

Translate

Forum|alt.badge.img+15
  • Nintex Partner
  • Answer
  • Jun 15, 2022 3:34 PM UTC

I think I see what is happening - it looks like you are looping through each value in an autocomplete control. What you want to do is loop through each item in the list view. Please see the attached steps

Translate