ADDT javascript validation and server side validation
Posted: 2015-11-03 10:10
Hi all,
I need to migrate/integrate form validation made with ADDT with some server side validation.
What is the best way to do this with ADDT?
Does "Throw error" server behaviour cover this problem?
Example:
I need to check a date entered by the user. The date is valid if it's at least 7 days before the current date.
How can I validate it, server side with ADDT?
I would create a variable in php that contains the computed date (today - 7 days) and then use it in a "throw error" server behaviour using the Build condition feature: if $computed_date > $entered_date.
Does it works?
Obviously there should be better ways to do this.
Can you point in the right direction for server side validation with ADDT?
Thanks in advance for any suggestion.
tony
I need to migrate/integrate form validation made with ADDT with some server side validation.
What is the best way to do this with ADDT?
Does "Throw error" server behaviour cover this problem?
Example:
I need to check a date entered by the user. The date is valid if it's at least 7 days before the current date.
How can I validate it, server side with ADDT?
I would create a variable in php that contains the computed date (today - 7 days) and then use it in a "throw error" server behaviour using the Build condition feature: if $computed_date > $entered_date.
Does it works?
Obviously there should be better ways to do this.
Can you point in the right direction for server side validation with ADDT?
Thanks in advance for any suggestion.
tony