Jump to content

Checkbox Date


pjf5066
 Share

Recommended Posts

I have a 'Due Date' field and also a 'Completed' field(checkbox) on a page called Milestone.  I am trying to grab the date that the checkbox called 'Completed' was checked off.  Do I have to go directly to SQL or is there something in processwire I can use?  

The purpose is because I would like to compare the date that the checkbox was checked, versus the Due Date.

Thanks!

Link to comment
Share on other sites

ProcessWire doesn't store date information with a checkbox field. Your best bet would be using a hook (insert one into /site/tempates/admin.php or write a simple module for this) to automatically populate separate, possibly hidden (unless you want users to tinker with this) datetime field when the checkbox is checked/unchecked.

Alternatively you could use the Page Reference with Date Field to achieve similar look and feel; just have one page called "Completed" selectable, and it should handle the rest for you :)

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