Mustafa_s
Member
Been away for Fabrik so I'm a little rusty at the moment. I have 1 field element (postalverifyhomepage___postalcode) in my form that is used so the user can enter their postal code, for which I have a regex ensuring the proper postal code format is used.
What I would like is to redirect the user depending on the postal code used. I will have 1000 postal codes (perhaps in two database joins). If the user enters a postal code that matches any table in database join "PostalOK" then he should be redirected to /pageA, If the user enters a postal code that matches any table in database join "PostalNO" then he should be redirected to /pageB.
What I have done so far is enabled two redirect plugins on my form with the following:
RedirectA:
Jump page: /pageA
Condition: return '{postalverifyhomepage___postalcode_raw}' == 'xxxxxx';
RedirectA:
Jump page: /pageB
Condition: return '{postalverifyhomepage___postalcode_raw}' == 'yyyyyy';
Question:
What is the proper syntax in the Condition field to match any value that is found in database join "PostalOK" or "PostalNO"? Also, I want to ensure there are no spaces in the input field for field element postalverifyhomepage___postalcode and it's all lowercase.
Thank you.
What I would like is to redirect the user depending on the postal code used. I will have 1000 postal codes (perhaps in two database joins). If the user enters a postal code that matches any table in database join "PostalOK" then he should be redirected to /pageA, If the user enters a postal code that matches any table in database join "PostalNO" then he should be redirected to /pageB.
What I have done so far is enabled two redirect plugins on my form with the following:
RedirectA:
Jump page: /pageA
Condition: return '{postalverifyhomepage___postalcode_raw}' == 'xxxxxx';
RedirectA:
Jump page: /pageB
Condition: return '{postalverifyhomepage___postalcode_raw}' == 'yyyyyy';
Question:
What is the proper syntax in the Condition field to match any value that is found in database join "PostalOK" or "PostalNO"? Also, I want to ensure there are no spaces in the input field for field element postalverifyhomepage___postalcode and it's all lowercase.
Thank you.