Categories > TinyButStrong general >

Choosing one of the multiple templates

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sine
Date: 2016-02-23
Time: 16:28

Choosing one of the multiple templates

Hello,
I wish to use a form that I need to validate as in the examples at: http://www.tinybutstrong.com/examples.php?e=form&m=result

The change I need is that instead of showing the same page up on successful validation, I would like to say 'thank you'.

I have tried a simpler idea as shown in conditional display, which did not work as the form was not displayed properly upon selection of the correct <tr>.

I tried but did not succeed in conditionally loading different templates, as again parsing perhaps was not done properly.

What would be the best approach for solving this issue, ie, to show the form until correct data is entered and display 'thank you' as valid input is given?

By: Skrol29
Date: 2016-02-25
Time: 00:58

Re: Choosing one of the multiple templates

Hi Sine,

A simple TBS filed with "magnet=table", or a simple conditional display using [onload] or [onshow] should work for deleting the <table> element when data are valide.
By: Sine
Date: 2016-02-26
Time: 12:27

Re: Choosing one of the multiple templates

Thanks Skorl29. I got it figured out with magnet=div. In the earlier attempt TBS tags were not processed so I thought it may not work. But it does and my mistake must have been with some typo somewhere.