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

Print Reminder Before Submit


  1. jamesmccarthy
    Member

    My users would like a message (in red) to appear after the Continue button is clicked, and before the Submit button is clicked. This would be a reminder to print out the form at that time.

    Jim

    Posted 13 years ago #
  2. redityo

    Hello Jim,

    You can customize "view-functions.php" file to add confirmation message in review page. To do this, edit the file and go to around line 2358 for this code :

    $form_markup = <<<EOT

    and put these code above that line

    $js_confirm = ' onclick="return confirm(\'Print this page before continue. Continue anyway ?\');" ';

    after that, go to around line 2389 for this code

    <input id="review_submit" class="button_text" type="submit" name="review_submit" value="{$lang['submit_button']}" />

    and change it to

    <input id="review_submit" {$js_confirm} class="button_text" type="submit" name="review_submit" value="{$lang['submit_button']}" />

    about the message in red? It will be a static text in review page ? If so, you can change this code from above code:

    $js_confirm = ' onclick="return confirm(\'Print this page before continue. Continue anyway ?\');" ';

    into

    $js_confirm = ' onclick="return confirm(\'Print this page before continue. Continue anyway ?\');" ';
    		$lang['review_message'] .= ' <br /> <li id="error_message"><h3 id="error_message_title">Print this page</h3></li>';

    MachForm Support

    Posted 13 years ago #
  3. jamesmccarthy
    Member

    redityo,

    I implemented the changes you recommended, but keep getting this error

    Parse error: syntax error, unexpected T_STRING in /hermes/bosweb25a/b101/ipg.tucsonsquaredancefes/machform/includes/view-functions.php on line 1824

    When I searched for "$form_markup = <<<EOT" I found four instances of this code and placed your changes before this on each occasion.

    I will keep playing with this while wating for your response.

    Jim

    Posted 13 years ago #
  4. jamesmccarthy
    Member

    redityo,

    OK I have fooled around with it, and get no error message. But, I also do not get my warning message.

    I went back, and only entered your code once for each of the two snippets.

    Take that back. I entered snippet for red and got

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /hermes/bosweb25a/b101/ipg.tucsonsquaredancefes/machform/includes/view-functions.php on line 20

    Any ideas?

    Jim

    Posted 13 years ago #
  5. yuniar

    Hi Jim,

    Can you send us your modified view-functions.php file please?
    It seems there is some syntax error there.

    We'll check it.
    You can send via email: customer.service [at] appnitro.com


    MachForm Founder

    Posted 13 years ago #
  6. jamesmccarthy
    Member

    Email with file at tached is on its way.

    Jim

    Posted 13 years ago #

RSS feed for this topic

Reply