Hi, I have a form with 6 buttons and the same form is being reused for two

Hi,
I have a form with 6 buttons and the same form is being reused for two different types of cases say Type A and Type B.
If Type A user logs in then according to the button clicked there are different validation groups called for each button and similarly for type B.
There are too many fields in the form, so if the user misses to enter something in the form when he clicks the button at the bottom, he has to scroll up to see what he missed out. So now am planning to give a validation message at the bottom of the form.
Now here is my question - When the Type A user logs in, i have to have different validation groups called at the same time. I have given condition like if(Type A, "Validation button1", Validation button2), but here i have to validate more than one 1 like if(type A, {validation1 ... 6}, {validation 1 ... 6}).
Is there any way to have multiple group validation of this sort?

OriginalPostID-181086

OriginalPostID-181086

  Discussion posts and replies are publicly visible

Parents
  • The validations attribute is a list so you should be able to do something like the following:

    validations: if(
              ri!type = "Type A"
              {
                        if(ri!field1 = "test1", "Test1 not allowed", ""),
                        if(ri!field2 = "test2", "Test2 not allowed", ""),
                        if(ri!field3 = "test3", "Test3 not allowed", ""),
                        if(ri!field4 = "test4", "Test4 not allowed", "")
              },
              {
                        if(ri!field1 = "check", "Check not allowed", ""),
                        if(ri!field4 = "no", "No not allowed", ""),
                        if(ri!field7 = "test", "Test not allowed", "")
              }
    )
Reply
  • The validations attribute is a list so you should be able to do something like the following:

    validations: if(
              ri!type = "Type A"
              {
                        if(ri!field1 = "test1", "Test1 not allowed", ""),
                        if(ri!field2 = "test2", "Test2 not allowed", ""),
                        if(ri!field3 = "test3", "Test3 not allowed", ""),
                        if(ri!field4 = "test4", "Test4 not allowed", "")
              },
              {
                        if(ri!field1 = "check", "Check not allowed", ""),
                        if(ri!field4 = "no", "No not allowed", ""),
                        if(ri!field7 = "test", "Test not allowed", "")
              }
    )
Children
No Data