Categories > TinyButStrong general >

Ifempty with radio inputs

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: matrix7319
Date: 2009-02-13
Time: 16:03

Ifempty with radio inputs

Dear All,

I don't understand why this syntax does not work properly : my default value is not set to 0.

Can you help me ?

Thanks in advance

[dossier.type_lieu;ope=html;select=type_lieu;noerr;iftempty=0]
<label><input type="radio" name="type_lieu" value="0" >Yes</label>
<label><input type="radio" name="type_lieu" value="1" > No</label>
By: Skrol29
Date: 2009-02-17
Time: 23:07

Re: Ifempty with radio inputs

Hi Matrix,

I've tested your snippet and it works nice for me.
Check at the HTML source produced an the end, can you see if the input tag is checked or not ? Sometimes FireFox doesn't checks form items because it remain old values from its cache. You can force to refresh by adding a new parameter in the URL.
By: matrix7319
Date: 2009-02-18
Time: 09:27

Re: Ifempty with radio inputs

Thanks a lot for your answer but It does not work for me.

I have checked the source and nothing appear selected.

I have noticed that in your Examples on the site, the radio and checkbox does not work also in the Plug-in: Selecting Items.

Am I wrong ?

Regards.
By: Skrol29
Date: 2009-02-18
Time: 11:38

Re: Ifempty with radio inputs

Hi Matrix,

I've fixed the Example bug you've reported. It was the names of the HTML items that did not matched with the TBS field.

Have you checked that the HTML plug-in is correctly installed for your snippet?