Repopulating dynamic fields after unsuccessful submit
Posted: 27 June 2008 02:57 PM   [ Ignore ]
Member
Avatar
RankRankRank
Total Posts:  55
Joined  2006-09-11

I may be overthinking this. I have 5 fields that take numbers. I dynamically add the contents of the fields together and display the result in another field using some simple jQuery. If there is form validation on for another field (say, a radio button, for example) and I forget to fill that field out, I go to the standard EE error page...which is fine. When I go BACK, what I would like to see are the fields being repopulated - including the one that was totalling the other fields.

Is there some sort of post array I can loop through to get those values back and re-populate the fields?

Profile
 
 
Posted: 01 July 2008 08:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

You just ran up against one of those annoying browser things. Some browsers remember the form, others don’t. Cookies may be your only option.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 01 July 2008 08:11 AM   [ Ignore ]   [ # 2 ]
Member
Avatar
RankRankRank
Total Posts:  55
Joined  2006-09-11

Yeah. Nasty problem. grin

I think if the user has JS on anyway, and I add jQuery validation, I’ll catch all the errors before the page reloads, which will help. Onward with jQuery validation!

Profile