Parameter not defaulting to 0 - Joomla! Forum - community, help and support
hi,
somehow i'm unable set parameter default way like..
in 'component.xml' have:
in config.xml have:
this results in param1 both options being blank , param2 has yes preselected default.
apparently 0 not accepted default....
somehow i'm unable set parameter default way like..
in 'component.xml' have:
code: select all
<params>
<param name="param1" default="0" />
<param name="param2" default="1" />
</params>in config.xml have:
code: select all
<param type="radio" name="param1" label="param1" description="param1_desc" >
<option value="0">no</option>
<option value="1">yes</option>
</param>
<param type="radio" name="param2" label="param2" description="param2_desc" >
<option value="0">no</option>
<option value="1">yes</option>
</param>
this results in param1 both options being blank , param2 has yes preselected default.
apparently 0 not accepted default....
what mean "both options being blank"? seems me problem somewhere else, not default setting. if change default 1 work? test of theory.
Comments
Post a Comment