|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ricklach Smarty Regular
Joined: 27 Aug 2004 Posts: 39
|
Posted: Thu Feb 17, 2005 11:21 pm Post subject: repopulate html_select_date |
|
|
I have the following two lines of code:
{html_select_date prefix="start" time=$startDate start_year="-2" end_year="+5"}
{html_select_date prefix="end" time=$endDate start_year="-2" end_year="+5" day_empty="" month_empty="" year_empty=""}
If I have an error in the form I want to repopulate these two fields but I don't know how. Any suggestions>
Rick |
|
Back to top |
|
michaelphipps Smarty Regular
Joined: 13 Sep 2004 Posts: 45 Location: Brisbane
|
Posted: Sat Feb 19, 2005 6:21 am Post subject: |
|
|
How exactly do you mean you want to repopulate? Are there specific default values that you want to reset the date to?
Would the form be submitted, or are testing using javascript? _________________ Michael Phipps
Internet Geek Extrodinaire
http://www.michaelphipps.com |
|
Back to top |
|
ricklach Smarty Regular
Joined: 27 Aug 2004 Posts: 39
|
Posted: Tue Feb 22, 2005 2:53 am Post subject: |
|
|
If my validation script fails I want to repopulate the form with the values that were submitted.. No javascript at this point.
Rick |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|