Hello,
I have a form with printing function, made months ago basically upon method described in
http://www.facileforms.biz/wiki/Printing_the_form_inputs. Everything is great with text fields and checkbox fields. For example,
function ff_print_action(element, action)
{
window.open(
'{mossite}/index2.php'
+'?option=com_facileforms'
+'&ff_name=myform'
+'&ff_param_my_textfield='+escape(ff_getElementByName('my_textfield').value)
+'&ff_param_my_checkbox='+escape(ff_getElementByName('my_checkbox').checked)
+'&ff_param_print=1',
'Print',
'dependent'
);
} // ff_print_action
on the script of the print button of the main form, and on the print form
<?php return ff_getParam('ff_param_my_textfied'); ?>
on the text value of the text field, or
function ff_my_checkbox_init(element, condition)
{
element.checked = <?php return ff_getParam('ff_param_my_checkbox',0); ?>;
} // ff_my_checkbox_init
on the Init Script of the checkbox.
But now, I have to implement radiobuttons on the form. Reading here and there, I understood that I have to put
+'&ff_param_my_radiobutton_group='+escape(ff_checkedValue('my_radiobutton_group'))
on the print button of the main form, but I have no idea of what to put on radiobuttons on the print form to get back the values, nor where.
Does anybody got a clue ? Thank you in advance.