Jump to content

Custom field settings closed when blank not working


ComPy
 Share

Recommended Posts

Hello

I took over an existing processwire project and had to develop a custom fieldtype. It was more like adjust and existing fieldtype. Everything seems to work fine but it doesnt work like the other fields when I select the option Open when populated + Closed when blank. It'll stay always open. Even if the inputs are empty.

If I set it to closed it will be closed. So I guess the field doesnt recognize it is blank. Couldnt figure out how it determines blank fields. Tried to set DB NULL, 0, empty with no luck. Any help where the cms checks fields state?

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...