entry_date is required in my forms, always
Posted: 23 October 2010 01:54 AM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  15
Joined  2010-10-22

I don’t need any help with this, but just thought it would be useful for people if they have a similar problem…

When i submitted a front-end SafeCracker form, i was getting the error:

“The Entry Date you submitted was not formatted correctly (year-month-day hour:minute)”

which is easily fixed by adding a hidden field to the form…

<input type="hidden" name="entry_date" value="{entry_date format='%Y-%m-%d %H:%i'}" /> 

Probably just me that’s getting this!

Profile
 
 
Posted: 26 October 2010 01:37 AM   [ Ignore ]   [ # 1 ]
Wallflower
Rank
Total Posts:  7
Joined  2010-10-17

Thanks! that was helpful here! (The date and format seemed to be required after I upgraded to the most recent version of SafeCracker, and I hadn’t previously had it for editing entries.)

Profile
 
 
Posted: 26 October 2010 01:58 AM   [ Ignore ]   [ # 2 ]
Wallflower
Avatar
Rank
Total Posts:  15
Joined  2010-10-22

smile glad to help. I think it’s probably good to give the field an id too:

<input type="hidden" name="entry_date" id="entry_date" value="{entry_date format='%Y-%m-%d %H:%i'}" /> 
Profile
 
 
Posted: 27 October 2010 02:58 AM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

This should no longer be necessary as of today’s build.

Profile