Skip to main content

we are attempting to add another If statement with the current one, but it doesn't seem possible.

 

For example:

When the button is clicked

      ==> If the form passes validation

           ==> If txt_address contains a value of XYZ

                ==> then submit the form

     ==> Else change the form status to invalid

          ==> Then display a message to the user

 

 

11009iD04CA152D7FC175E.png

An "and" condition would serve the same purpose in your example.

Otherwise if the form passes validation and the address does not contain XYZ then nothing will happen.  Is that your intention?


@Victoria

From a K2 perspective it seems as though the condition should be the same as that of a .NET perspective. Even though the behaviour is the same the functionality could differ:

You might want to separate the two conditions either side of the 'and' and only run the second condition if the first is met.

 


LT_Jason, it is possible to concatenate conditionals in a nested way. but in order to achieve that you need to do it the K2 Way with Outbound Rules.

 

Here is the link for a post where I show how can loop trough 2 Views and compare the Items.

http://community.k2.com/t5/K2-blackpearl/Is-it-possible-to-compare-two-SMOs-Loop-trough-all-items-and/m-p/87694#M27254

 

So basically the point I'm trying to make is  to see how you can take advantage of Outtbound Rules. use those for validations and depending of what they do, they can execute another Outbound Rules and that will do exactly what you need.

 

Hope this helps =)

 

Dinooz.


Reply