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
Started 13 years ago by jamesmccarthy | 6 posts |
-
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 # -
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 # -
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 # -
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 # -
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.comMachForm Founder
Posted 13 years ago # -
Email with file at tached is on its way.
Jim
Posted 13 years ago #
Reply
You must log in to post.