Now that the gift card number verification works, I want to compare/verify the total amount the user creates by selecting the number of seats with the amount on the gift card. Before I take the step above, if you apologize.
Here I want to compare database row called "PresentkortSumma" with input field "Summa” from the form. And this is associated with the early gift card number "Presentkortnr".
I've made an attempt that seems to work in part. I have created a new "Like Entry" validation in Server Validations. There I chose: "Summa” as a variable, and then I chose: Same as: ”PresentkortSumma”.
This created the following code:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Summa"]))?$_POST["Summa"]:"") . "",($rsPresentkort->getColumnVal("PresentkortSumma")) . "",true,2);
When I test this in the browser it is only accepted if both fields match "Presentkortnr", "Summa” - just as I wish. The problem is that I don't seem to be able to create an error message for this Like Entry validation. It is not in the Validation Show If list. Of course, I want an error message here as well.