|
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 |
Cronet Smarty Rookie
Joined: 21 May 2003 Posts: 15
|
Posted: Thu Aug 11, 2005 3:37 pm Post subject: smartyValidate - simple question i think... |
|
|
hi therfe,
i think i have a simple question... But I'm searching for about one hour and get no answer.
Is it possible to check something like this:
<select....>
<option value="0">...choose...</option>
<option value="1">foo</option>
<option value="2">bar</option>
</select>
Can I check wether the value is 0 or higher?
Which criteria I should use?
Hope for help
Greetings from Germany,
Alex |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 11, 2005 4:25 pm Post subject: |
|
|
You could probably use isRange with an extremely high end value, or more appropriately create a custom validator. |
|
Back to top |
|
migas Smarty Regular
Joined: 07 Apr 2004 Posts: 73 Location: Porto, Portugal
|
Posted: Fri Aug 12, 2005 5:16 pm Post subject: |
|
|
Hi,
Set "...choose..." with no value
<select....>
<option value= "">...choose...</option>
<option value="1">foo</option>
<option value="2">bar</option>
</select>
Then check if isEmpty or some criteria like this. |
|
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
|