Re: [Zope] dtml-if newbie question

2000-11-09 Thread Geir Bækholt
possibly not the cleanest way of doing it, but this ought to do what you want.. select name="money:int" option value="1000"1000 option value="5000"5000 .. etc.. and dtml if "money == 1000" This is not much! dtml-elif "money == 5000" This is ok! dtml-elif .. etc.. /dtml-if -- Geir Bækholt

RE: [Zope] dtml-if newbie question

2000-11-09 Thread hohage
Hallo Stephan you can't iterate over a string! That's working: dtml-if "money=='1000'" This is not much! dtml-elif "money=='5000'" This is ok!

Re: [Zope] dtml-if newbie question

2000-11-09 Thread Paul Zwarts
Another thing you can do, not sure if Im using it right, but the effect is good... dtml-unless first_name dtml-raise type=ValidationError font face="Arial, Helvetica, sans-serif" size="-1" color="#00"bYou must specify a font color="red"First Name/b/font. /font

Re: [Zope] dtml-if newbie question

2000-11-09 Thread seb bacon
* Stephan Goeldi [EMAIL PROTECTED] [001109 16:49]: dtml-in money dtml-if "1000" This is not much! /dtml-if dtml-if "5000" This is ok! /dtml-if dtml-if "1" This is very much! /dtml-if /dtml-in I am sure that there is an error in my thinking of

Re: [Zope] dtml-if newbie question

2000-11-09 Thread Christian Scholz
HI! I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this:

Re: [Zope] dtml-if newbie question

2000-11-09 Thread Dieter Maurer
Stephan Goeldi writes: ... select name="money" /select ... and the form_action method is this: dtml-in money "money" will come in as a string value not as a list. It would be a list, if you added a "multiple" to your "select". dtml-if "1000" This will always be true. It