Jump to content

Inputfield Dependencies JS not firing in module


Recommended Posts

(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?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...