Categories > TinyButStrong general >

problem with value initialize using tbs

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: leeladharan
Date: 2005-05-11
Time: 12:03

problem with value initialize using tbs

Hi In the following code value is based on the [val] = 1 or [val] = 2 .
The code is executing properly but 'value' field of html is set to [var.T9_UT] if [val]=1 and similarly other tbs tag [var.minHandCustom1] if [val]=2 but I need the 'value' = the value of tbs tag not that string.How to handle?

<input type = "textbox" size = "2" name = "T9_UT" value = "[var.mintol1;if [val]=1;then [var.T9_UT];else [var.minHandCustom1];noerr]" readonly = "true">
By: Skrol29
Date: 2005-05-11
Time: 14:16

Re: problem with value initialize using tbs

Hi Leeladharan,

Var fields are examinated inside parameters 'then' and 'else' only since TBS version 2.02. I suggest version 2.02.2.

Otherwise, you have to force an extra Var merging. You can do it using
  $TBS->MergeSpecial('var');
before $TBS->Show();