Hi,
Hereto I have a little further question for a situation, where I have two scenarios:
I need a double validation for a situation, where 1) [cb_cv_date_until] is empty and the second validation where 2) [cb_cv_date_until] is not empty (because the user could fill something in [cb_cv_date_until] before he added to [cb_cv_date_from]
So I would like to use this lines of code (serial, not nested) in the CB Code Field:
Code:
if ( ( '[cb_cv_date_until]' == "" ) && ( strtotime ( '[value]' ) < strtotime( 'now' ) ) ) return true;
if ( ( '[cb_cv_date_until]' !== "") && ( strtotime ( '[value]' ) < strtotime( [cb_cv_date_until] ) ) ) return true;
Can I do these different situation with procedure? (The additional field at [cb_cv_date_from] is set to [cb_cv_date_until])
I missed the validation of the second line. That don't work.
If I have once this in place, I can go further alone for all other validations. Here I need a feedback to the general procedure with multiple validations. So I would like to ask you, whether you can give a short hint hereto again.
Thanks, best regards
Eric