So, i have a date that cannot be > than today(), so i have a validation field. But when I enter a wrong date, the validation field triggers but it saves the save value into my rule input. It is possible to don´t save the value if the validation field triggers?
Discussion posts and replies are publicly visible
No. Validation is meant to prevent the user from submitting the form.
Stefan is correct, and to expand on this I don't think you would even want the behavior you specified. Suppose that you altered your date field so that if the user entered a date greater than today it wouldn't save. In that case they would enter a date, and then if it didn't meet the criteria the data would disappear. It's actually a good thing that the value saves so that the user can see the results and understand how to fix it.
Hi Peter, now my question, It's posible to save the validations in a local!variable? thanks
Not direclty, but if it's really necessary you can always duplicate the Validation logic in your SaveInto and thus do pretty much whatever you want.
You can check the value before saving into any variables, like below,
a!save( ri!date, if(save!value<today(), save!value, null) )