blindmime:
I guess I'll start over.
This is an Aparna-generated module. There is no custom coding to the module beyond what is provided by Aparna. I have added a "task_completed_date" field via the form designer with a date type. This is viewable in the update form. There is also a checkbox type field called "task_complete".
This module schedules tasks for maintenance people out in the field working on various Property profiles. When the task_complete checkbox hasn't been checked, then the task appears in their list of tasks to complete.
This is used in spring, summer, fall. It was used last year and now is being used again.
Last year, the client could update a task and there would be no date in the date field until she entered one. Or so she says, I'm thinking the current date would be showing since I've seen this happen on another jamroom site I have. The current will show in a date field when nothing has been entered.
What we do agree on is that showing the current date in the form when nothing has been entered is very confusing. You assume the date has been entered already.
This was changed a version or 2 ago to not show, so this no longer should be an issue.
blindmime:
This thread was started because I wanted a way to NOT show a date in the update form when nothing has previously been entered.
That is how it works now.
Quote:
You gave me some code to place in the module's index.php file (see above). When I did that, it didn't change the update form display of task_completed_date (it still shows the current date). However, what does change is that the current date value is actually ENTERED as the task_completed_date even when the client doesn't click on the date and enter it via the javascript calendar. It also overrides values that have been entered when the form is updated.
Hopefully that makes sense.
I think I understand - basically even though no date is shown in the date field, on SAVE the current date is being saved.
Let me know if that sounds right - I'll check out the code and see if we have some sort of "default" handler adding that in.
--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
updated by @brian: 03/20/15 09:32:31AM