September 07, 2010, 10:15:40 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Always search the forum before posting !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Print form with radio buttons  (Read 201 times)
tomoe
Newbie

Offline Offline

Posts: 11


« on: April 26, 2010, 06:10:48 pm »

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,
Code:
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
Code:
<?php return ff_getParam('ff_param_my_textfied'); ?>
on the text value of the text field, or
Code:
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
Code:
+'&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.
« Last Edit: April 26, 2010, 06:17:11 pm by tomoe » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |