Hi all,
I have a problem with validation and I didn't found any solution.
Here the situation:
I have a group in a form with more elements and related validations.
I have an element with a validation that makes a query to the DB and validate the input with the results. Until here, no problem. My issue is that I need to leave out the validation based on another element. Can I do that with the PHP eval?
For example:
Element A - INT
Element B - STRING
DB value presents for column A: {1,2,3,4,5,6,7,8,9}
In the "ADD" form I need the following behaviour for the validation:
- A must be different to {1,2,3,4,5,6,7,8,9} (already exists on DB)
- If B is equal to "SPECIAL", A can have any value including.
How can I validate A and in the same time check the value in B?
Thanks in advance
eulanaz
I have a problem with validation and I didn't found any solution.
Here the situation:
I have a group in a form with more elements and related validations.
I have an element with a validation that makes a query to the DB and validate the input with the results. Until here, no problem. My issue is that I need to leave out the validation based on another element. Can I do that with the PHP eval?
For example:
Element A - INT
Element B - STRING
DB value presents for column A: {1,2,3,4,5,6,7,8,9}
In the "ADD" form I need the following behaviour for the validation:
- A must be different to {1,2,3,4,5,6,7,8,9} (already exists on DB)
- If B is equal to "SPECIAL", A can have any value including.
How can I validate A and in the same time check the value in B?
Thanks in advance
eulanaz