blank fields after inline errors
Posted: 09 January 2011 08:40 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  6
Joined  2011-01-04

Using safecracker beta. I’ve got inline errors coming back (required fields) but other fields that were filled in are blank when it comes back.  What could be causing that?
thanks

Profile
 
 
Posted: 09 January 2011 09:06 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Which version number and/or build of SafeCracker are you running? And EE version?

Profile
 
 
Posted: 09 January 2011 09:09 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  6
Joined  2011-01-04

Safecracker Beta - Build 20101102
ExpressionEngine v2.1.1 - Build:  20101020

Profile
 
 
Posted: 09 January 2011 11:22 AM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Are any of the fields there when you come back? Title, maybe?

Profile
 
 
Posted: 09 January 2011 11:23 AM   [ Ignore ]   [ # 4 ]
Wallflower
Rank
Total Posts:  6
Joined  2011-01-04

The title field is not part of the form.  They are all custom fields.

Profile
 
 
Posted: 09 January 2011 10:23 PM   [ Ignore ]   [ # 5 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Can you post your template code here? Also, is there any chance you can update to the latest versions of EE and SC?

Profile
 
 
Posted: 09 January 2011 11:43 PM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  6
Joined  2011-01-04

I just updated EE to the latest version.  I guess a thanks is in order for getting me motivated to do that.  It was a little scary but I figured that I would want that anyway since I’‘m going to implement CT once the v2 is released.  I can’t seem to find upgrade instructions for SC.  I downloaded the new version.  Can you point me to something that will help?  I’m concerned as one of the main features of my site uses SC and I don’t want to lose that.

thanks

Profile
 
 
Posted: 09 January 2011 11:45 PM   [ Ignore ]   [ # 7 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

All you have to do is replace your old SC files in the third_party folder with the new ones.

Profile
 
 
Posted: 09 January 2011 11:51 PM   [ Ignore ]   [ # 8 ]
Wallflower
Rank
Total Posts:  6
Joined  2011-01-04

Ok, all updated.  I am sending you a PM with the code.
thanks

Profile
 
 
Posted: 10 January 2011 12:04 AM   [ Ignore ]   [ # 9 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Should be a simple fix. add a value attribute to your form inputs with the field name as a tag, ie:

<input type="text" name="app-gallery-name" value="{app-gallery-name}" class="required text"/>

<
textarea name="app-gallery-name">{app-gallery-name}</textarea

And one more note. At one point you use a custom_fields loop to check for that one particular field. That’s a bit inefficient and yuo should be able to replace that with this:

{options:app-requested-booth-size}<input type="radio" id="app-requested-booth-size" name="app-requested-booth-size" value="{option_value}" {checked} class="required radio-but"/><label class="radio-but">{option_value}</label><br>
{/options:app-requested-booth-size} 
Profile
 
 
Posted: 10 January 2011 01:14 AM   [ Ignore ]   [ # 10 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-25

Tried the value= and it did not work.  I had tried that with the earlier versions as well.  I will PM you the url where this sits and will remove any auth restrictions.

Profile
 
 
Posted: 10 January 2011 01:16 AM   [ Ignore ]   [ # 11 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-25

And thank you on the options code!  I was reading into doing that without the loop but got sidetracked.

Profile