Ok! so how could I make a checked option?
add_filter( ‘sf_input_object_pre’, ‘filter_function_name’, 10, 2 );
function filter_function_name( $input_object, $sfid )
{
if ( $input_object[‘name’]==’_sfm_aff_price_type’ ) {
//udpate this field before rendering
}
return $input_object;
}
It returns this object:
input_object:Array
(
[name] => _sfm_aff_price_type
[defaults] => Array
(
[0] =>
)
[options] => Array
(
[0] => stdClass Object
(
[label] => Mensual
[count] => -1
[attributes] => Array
(
[class] => sf-level-0
)
[value] => month
)
[1] => stdClass Object
(
[label] => Trimestral
[count] => -1
[attributes] => Array
(
[class] => sf-level-0
)
[value] => quaterly
)
)
[attributes] => Array
(
[data-operator] => and
[class] =>
)
[accessibility_label] =>
[type] => checkbox
[input_class] => sf-input-checkbox
)
Which value do I have to change to make month checked in radio?