griffin
Member
I have a form which I wish to redirect upon submission to a particular page. I want the submission message for a user who entered an email address to be different from a user who didn't enter an email address.
Basically the submission message says "you have been sent an email..." for the user who entered an email address - or - "we will be in contact... " for the user who doesn't enter an email address.
I would really appreciate some assistance with this. I have tried creating two redirect plugins in the form - one for each situation with conditions:
return (int) '{register___email}' === 0;
and
return (int) '{register___email}' === 1;
and I am not getting the result I want i.e. different submission message if has email address to doesn't have email address.
Should I have two redirects and what am I doing wrong with condition? Cheers
Basically the submission message says "you have been sent an email..." for the user who entered an email address - or - "we will be in contact... " for the user who doesn't enter an email address.
I would really appreciate some assistance with this. I have tried creating two redirect plugins in the form - one for each situation with conditions:
return (int) '{register___email}' === 0;
and
return (int) '{register___email}' === 1;
and I am not getting the result I want i.e. different submission message if has email address to doesn't have email address.
Should I have two redirects and what am I doing wrong with condition? Cheers