José Antonio Posted August 24, 2018 Share Posted August 24, 2018 How can I make a field required by state? For example, if the user chooses country: Canada, now request identification number is optional, this is a prestashop option but if you choose city: Ontario (contains states), identification number is required I've tried a thousand ways but I think it would be best to do it using javascript, any ideas? Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2018 Share Posted August 26, 2018 No, you should force this in the Smarty template. Maybe an array_map directive will do. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now