Wednesday 14 May 2003 3:04:13 am
it`s work, i had tried befor, but in this case i cann`t make radio button checked ! what i need : checked the radio button, but just 1 radiobutton, and just if user_access is true. the result is : 3 status, 1. just 1 radiobutton is checked from the user_access group. 2. else radiobutton in user_access is unchecked. 3. what is not in user_access no radiobutton, just n/a. i got this code work fine, but am still not sure about it, i got what am need but i think there are better way to do it , coz by thinking this will check up the just the 1st radiobutton if is user_access, but my 1st radionbutton user_access is false, coz of this is strange for me it`s work ?! {section show=eq($Object:index,0) and show=eq($Object:item.data_map.user_access.content,1) }
<input type="radio" name="SelectedNodeIDArray[]" value="{$Object:item.node_id}" checked/>
{section-else}
{section show=eq($Object:item.data_map.user_access.content,1)}
<input type="radio" name="SelectedNodeIDArray[]" value="{$Object:item.node_id}" />
{section-else}
n/a
{/section} {/section}
|