Mike Rockett Posted January 8, 2015 Posted January 8, 2015 (I hope I'm not missing something silly here - but I have checked around, and can't figure it out.) I have two checkbox Inputfields in a form. One is called isPermanent, and the other is called delete. When isPermanent is checked, delete needs to disappear. The following selector us being used: $deleteField->showIf = 'isPermanent=0' Now I think I'm having a bad time with checkboxes (I had an issue with them in ModuleConfig). I've noticed that, even if I pass value = 0 to isPermanent, the value stays at 1. The issue here is that the delete field is not hiding when I check isPermanent. Am I missing something?
Soma Posted January 8, 2015 Posted January 8, 2015 Difficult without seeing code but if you define an id for the inputfields dependencies doesnt work as it requires a certain id.
Mike Rockett Posted January 8, 2015 Author Posted January 8, 2015 That did it, thanks Soma. I gave the isPermanent field an id.
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