| Post |
|
Dave - Guest
8:58 pm - April 15, 2008
|
| |
|
Please replace the ??? with your data!
- Your URL: behind firewall, sorry
- The browser used: safari and Firefox
- cforms version: 8.2
- Your Wordpress version: 2.5
[desc]:
Hey there. I'm very impressed with this plugin.. great job!
I have 2 small issues with the Date Picker.
-- the start date is defaulting to 01/01/1899 ... shouldnt it default to TODAY?
-- the date icon is appearing on the far left (before the field label) but it should be to the right of the field, I think... I had this similar problem with the CAPTCHA refresh button, but I tweaked the CSS to ensure there was float:none;
Any help is appreciated!!
Thanks again,
Dave
|
|
|
Oliver
- Admin
9:21 pm - April 15, 2008
posts 3909 |
| |
|
the start date is defaulting to 01/01/1899 ... shouldnt it default to TODAY?
Right, that's how it should be.
What does your date format look like (datepicker setting)?
the date icon is appearing on the far left (before the field label) but it should be to the right of the field
correct, but without seeing your page I can't say what's wrong. check your CSS theme file for .cf_date {It should only include the input field width - 20px;
E.g.:
.cform input.cf_date { width:380px; /* if normal input field width = 400px */ }
|
|
|
Dave - Guest
9:42 pm - April 15, 2008
|
| |
|
Wow. thanks for the prompt reply. sorry its behind a firewall and you can't see it.
The Date Format is set to: MM/dd/yyyy but I also tried mm/dd/yyyy. no luck.
When I view the source of the page I see in the JS I see
cforms(function() { Date.format = "dd/mm/yyyy"; cforms(".cf_date").datePicker( {startDate:"01/01/1899",verticalOffset:5,horizontalOffset:5} ); Date.format = "mm/dd/yyyy"; });
Regarding the icon. I don't have any ".cf_date" class in either my stardust_v10 theme or the cfforms css file.
I tried to add it to cfforms.css but that didnt do the trick.
Thanks again. Any feedback is appreciated.
Dave
|
|
|
Oliver
- Admin
10:39 pm - April 15, 2008
posts 3909 |
| |
|
Again it's almost impossible to troubleshoot without access.
'mm/dd/yyyy' should be fine, this is what I used in the test environment.
The startdate needs to be set to 1/1/1899 to make sure you can pick a date before TODAY. Otherwise the calendar would only allow you to pick a date starting from TODAY.
Do you have a default value for the date field?Try with an emtpy date field to start with.
Regarding the icon. I don't have any ".cf_date" class in either my stardust_v10 theme or th
Adding .cf_date should matter, you may have to Shift+Reload to make sure the new CSS is being picked up. If you have Firefox+Firebug you can easily test and see if .cf_date is being applied to the date field and if the width needs to be adjusted...
|
|
|
Dave - Guest
10:54 pm - April 15, 2008
|
| |
|
Thanks again. I can create a login for you to access the pages but I'd rather not post it here. can you email me and i'll send it to you.
I had originally had this in the Field Name:
Then I tried:
Release Date|mm/dd/yyyy|^[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]$
And after your suggestion. I now have the following and it seems to work ok.
Release Date
Thanks for that suggestion.
As for the cal icon. I had shift+refreshed but with no success. Seems to push the icon to the left of RELEASE DATE every time. The Capcha refresh icon did the same, so maybe it is my theme. I'll try a few more things. Thanks again.
|
|
|
Oliver
- Admin
6:45 am - April 16, 2008
posts 3909 |
| |
|
You have email.
Re: the date field, yes I figured something like that, in the next release, I'll make sure to find a way to circumvent that.
|
|
|
Dave - Guest
7:39 pm - April 16, 2008
|
| |
|
Great, thanks, I sent you the info... Just letting you know incase it ended up in SPAM :)
Thx
Dave
|
|