Update calendar.md
User description
added info re setting default date to current date
PR Type
Documentation
Description
-
Added documentation for setting default date in calendar field
-
Explained use of
default="now"for current date
Changes walkthrough 📝
| Relevant files | |||
|---|---|---|---|
| Documentation |
|
Need help?
Type /help how to ...in the comments thread for any questions about Qodo Merge usage.Check out the documentation for more information.
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪ |
| 🧪 No relevant tests |
| 🔒 No security concerns identified |
| ⚡ No major issues detected |
PR Code Suggestions ✨
No code suggestions found for the PR.
It should be made clear that what goes into the Default Date field is the word now for a default date of now.
It should be made clear that what goes into the Default Date field is the word now for a default date of now.
Is this not clear (from the proposed change):
You can default to the current date by using
default="now"
It should be made clear that what goes into the Default Date field is the word now for a default date of now.
Is this not clear (from the proposed change):
You can default to the current date by using
default="now"
I tried it out. The field expects a date and if you enter default="now" there is an error when submitting the form. It took me several tries to figure out that the word now is required.
I tried it out. The field expects a date and if you enter
default="now"there is an error when submitting the form. It took me several tries to figure out that the wordnowis required.
Ah, so what you put in the xml was default="default="now"" ?!
Or were you just trying to set the date to the current date by typing "now" into the rendered form instead of pressing the "today" button. I didn't know that that worked but I've just tried it and it does.
So the confusion is that it wasn't clear that this is about setting the default attribute in the xml so that if no date is entered it comes up with a particular date (default="2016-09-14") or the current date (default="now").
I'll add " for the default attribute in the xml" to make it clearer.
Avoid the words press and pressing (and click). Use select/selecting which are device agnostic.