Error when the safecracker_file field is required
Posted: 10 September 2010 12:39 AM   [ Ignore ]
Has a Great Personality
Rank
Total Posts:  36
Joined  2010-09-08

I’ve created a safecracker entry form which includes a safecracker file field.  If the safecracker file field is required, and I attempt to submit the form, I get the following error:

The following errors were encountered

* required

It doesn’t list the name of the safecracker file field and it also ignores the other required fields that I have on the form.  If I put something in the safecracker file field and then hit submit without filling out the rest of the form, it works as excepted and tells me the other fields that are required.

I’ve running Safecracker Build 20100907 and EE 2.1 Build 20100810.

[ Edited: 10 September 2010 06:32 AM by Stephen T ]
Profile
 
 
Posted: 10 September 2010 12:41 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Can you test one more thing for me? What kind of error do you receive from the publish form in the CP? Is it the same?

Profile
 
 
Posted: 10 September 2010 12:50 AM   [ Ignore ]   [ # 2 ]
Has a Great Personality
Rank
Total Posts:  36
Joined  2010-09-08

It looks like it works better from the CP.  It puts the required text after each field, so on the Score field it has the red text after it that says “The Score field is required.”

If I put something in the safecracker file field and then hit submit without filling out anything else, it submits the file, brings up the required text on all the other required fields, and blanks out the information that was in the safecracker file field.  So it’s uploading the file without the entry being submitted, but that might be the expected behavior.

Profile
 
 
Posted: 10 September 2010 03:17 AM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Just put out a new build that fixes this.

Profile
 
 
Posted: 10 September 2010 06:28 AM   [ Ignore ]   [ # 4 ]
Has a Great Personality
Rank
Total Posts:  36
Joined  2010-09-08

Fantastic!  Thanks for your quick support.

Profile