By: Skrol29
Date: 2003-04-06
Time: 20:08
|
Re: if then else ...
Hi Uwe,
About the if-then-else statement, the problem seems to be in your merge-field id. Try:
value="[b_news.news_from;if [val]=2000-01-01; then [sys.now;frm='yyyy-mm-dd']; else [val]]"
- 'if', 'then' and 'else' are paremeters of the merge-field.
- the [val] keyword enables you to indicates the value of the current field within its parameters.
About how to get a check-box selected:
It depends on where the information comes from. If it comes from a data base, the best way is to add a column wich contains 'selected' or '' in the query that returns all check-box items.
An other way is to use a 'tbs_check' field with a if-then-else statement.
If you give more details on you problem I could write some code.
By the way, TBS has a special parameter wich allows to select a value in a combobox. But due to HTML syntax, this parameter is not yet available for check-boxes.
|