Back to myContactForm.com - Easy email form creation and processing for your web site
myContactForm.com - Help Forum Forum Index myContactForm.com - Help Forum
Have a question that you need answered about myContactForm.com? Post it on this message board but first search this forum and read out FAQ to ensure it has not already been answered. This is not a board to post links to your site! SPAM will be deleted!
 
   Search MessagesSearch Messages
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

predefined - dateselector uk formatting

 
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
JanPoz



Joined: 26 May 2010
Posts: 2

PostPosted: Tue Nov 29, 2011 8:45 am    Post subject: predefined - dateselector uk formatting Reply with quote

On my ENQUIRY FORM http://www.vikingston.co.uk/7.html I have two questions that require a date, so I use the predefined -date selector and as suggested, as I am in the UK, change MM/dd to dd/MM which has worked fine for over a year. Today the form somehow changed and starting throwing up errors that fields hadn’t been filled in etc. After much reading on the forum I decided to re-build the form

Unfortunately, having fixed the errors I find that I can only change the date back to the UK format on the first predefined date selector used in my question “Date of OUTGOING travel” as below:

<a href="#" onClick="cal1x.select(document.contactForm.date22,'anchor22',’dd/MM/yyyy'); return false;" title="cal1x.select(document.contactForm.date22,'anchor22',’dd/MM/yyyy'); return false;" name="anchor22" id="anchor22"><img src="http://www.mycontactform.com/js/img/calendar.gif" alt="Select Date" border="0" style="vertical-align: bottom;" /></a>
<div id="calendar" style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></div>

However, the second time I use the predefined date selector in for the question “Date or Return travel” it uses different code:

$("#q45").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true });

How do I change this to UK date FORMAT?

If it helps I am entering the code into a 1and1 placeholder in their webbuilder
Thanks,

JanPoz

since posting the above I found that in my user information I could change the settings to the UK. Unfortunately now that I have done that, the code for both calendars has changed and I now get error messages saying the dates have NOT been filled in when they have - HELP!


Last edited by JanPoz on Tue Nov 29, 2011 9:15 am; edited 1 time in total
Back to top
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2860

PostPosted: Tue Nov 29, 2011 1:30 pm    Post subject: Reply Reply with quote

We have made significant changes to the calender system. What you need to do:

1. Remove existing calender questions from your forms.
2. Update your data format setting under 'My User Information'
3. Create new questions. The new questions that are created will use the proper formatting.
4. Get new form code and paste it to your website.

Nick Ladd
myContactForm.com
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Bug Reports All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group