This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Form print


  1. gertduvenage
    Member

    Is it possable to put a print button on the form, to allow the user to print the form after completion ?

    Posted 16 years ago #
  2. redityo

    Hi,

    I'm afraid this is not possible yet, but I suggest you activated your form review and let the user print from that page. Maybe you can add a button there, edit your "includes/view-functions.php" and replace the code from line 2384 ~ 2388 from :

    <li id="li_buttons" class="buttons">
    	<input type="hidden" name="id" value="{$form_id}" />
    	<input id="review_back" class="button_text"
    type="submit" name="review_back" value="&laquo; {$lang['back_button']}" />
    	<input id="review_submit" class="button_text"
    type="submit" name="review_submit" value="{$lang['submit_button']}" />
    </li>

    to

    <li id="li_buttons" class="buttons">
    	<input type="hidden" name="id" value="{$form_id}" />
    	<input id="review_back" class="button_text"
    type="submit" name="review_back" value="&laquo; {$lang['back_button']}" />
    	<input id="review_submit" class="button_text"
    type="submit" name="review_submit" value="{$lang['submit_button']}" />
    	<input id="review_print" class="button_text"
    type="button" name="print" value="print me" onclick="javascript:window.print();" />
    </li>

    MachForm Support

    Posted 16 years ago #
  3. gertduvenage
    Member

    Thank you 'redityo'. Just what I want !!!

    Posted 16 years ago #

RSS feed for this topic

Reply