Home › Forums › Quform WordPress › Todays date
- This topic has 12 replies, 3 voices, and was last updated 11 years, 8 months ago by jasecorn.
- AuthorPosts
- February 16, 2013 at 2:17 pm #2921jasecornParticipant
I’d like to have the date element default to today’s date.
I know I can do this with a single line text and insert a variable, but there appears to be no way of doing this with the actual date element – I can only set a static default date.
I’d rather not use a text line to achieve this.Can this be done?
February 17, 2013 at 11:51 am #2935AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 17, 2013 at 1:32 pm #2940jasecornParticipantAwesome! Thanks!
February 21, 2013 at 9:52 pm #3051gmwestrupParticipantHow can you make it do this on every form? Just add one for each form? I have many forms and want to make this the default.
February 22, 2013 at 8:54 am #3058AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 22, 2013 at 6:15 pm #3067gmwestrupParticipantThanks, awesome as usual!
March 7, 2013 at 1:55 pm #3293jasecornParticipantHi
Is there a way to change the timezone offset for this? It appears to be getting today’s date from the server, instead of from the users’s local PC.
March 8, 2013 at 11:23 am #3304AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 8, 2013 at 2:02 pm #3307jasecornParticipantThanks for that!
Although I think you meant to use .getDate() instead of .getDay()?
.getDay returns the days of the week instead of the month.March 10, 2013 at 8:14 am #3316AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 10, 2013 at 1:03 pm #3320jasecornParticipantHi Ally
I just noticed that while this works great initially, with the form set to “Display a message” after submitting the form, the date field is reset to the default (d/m/y) when a form is submitted – so it loses the date completely after the first submission.
Is there any way to make this stick after submitting a form?March 10, 2013 at 1:29 pm #3322AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 10, 2013 at 1:37 pm #3323jasecornParticipantAwesome! That works great. Thanks 🙂
- AuthorPosts
- You must be logged in to reply to this topic.