Skip to main content

I am using K2 Five

I create one new form with Multiple add Row view that means user can enter multiple values using default add new button .

 

Now my scenario is in such case user not adding any even single row user click the submit button we need to show the error message need to add atleast  single row .

 

i was attached the my form .

 

Question is ) without any single row value form cannot be submitted

 

 

Hello,

At the top of my head, you can use a Data Label control to check whether a list view has rows added to it or none. For this Data Label control, you can initially set its value to 0. When the Submit button is clicked, you can do the following:

for All rows on [LIST VIEW]
>>> then transfer data:  Set 1 for the Data Label Control
If [DATA LABEL CONTROL] contains 0
>>> then show a message: A warning that at least one row should be added

Hope this helps.

 


Hello ,

 

Thank you for your response,

I was attached the K2 Rule what you said.but i have one doubt in your rule.

 

first is the event rule that means when button is cliked

Second  Condition rule that means for All rows in the view

thirds in Action rule that measn tranfer the data for datalabel control 1

 

then again you said condition rule id control contain 0 throw error msg this one how is it possible for one event action

system will not allow to do the rule again the condition statement

 

 


Hello,

You can expand on this rule to include all the actions you would need to do if they have rows added to your list view:

for All rows on [LIST VIEW]
>>> then transfer data:  Set 1 for the Data Label Control
If [DATA LABEL CONTROL] contains 0
>>> then show a message: A warning that at least one row should be added
Else
>>> do the necessary

From the attachment, you have a condition for "If Form passes validation". You can put this within the Else clause.

Hope this helps.



Reply