pjf5066 Posted July 8, 2015 Share Posted July 8, 2015 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 More sharing options...
teppo Posted July 8, 2015 Share Posted July 8, 2015 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 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