Appnitro Software Forums » MachForm 2

Move submit button


  1. Can you please explain how I can move or duplicate the submit button on the submission review page please?

    When a user completes a form, if it's a particularly long form I don't want them to have to scroll to the bottom of the review page to click the submit button - I would want them to have the option of submitting straight away.

    Can you help please?

    Thanks,

    Matt

    Posted 2 years ago #
  2. redityo

    Hi Matt,

    Try to edit your "includes/view-functions.php" file and go to around line 2379 ~ 2392, you'll see these code :

    <form id="form_{$form->id}" class="appnitro" method="post" action="{$_SERVER['PHP_SELF']}">
    	<div class="form_description">
    		<h2>{$lang['review_title']}</h2>
    		<p>{$lang['review_message']}</p>
    	</div>
    	{$entry_data}
    	<ul>
    	<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>
    	</ul>
    </form>

    then replace the code with these one

    <form id="form_{$form->id}" class="appnitro" method="post" action="{$_SERVER['PHP_SELF']}">
    	<div class="form_description">
    		<h2>{$lang['review_title']}</h2>
    		<p>{$lang['review_message']}</p>
    	</div>
    	<ul>
    	<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>
    	</ul>
    	{$entry_data}
    	<ul>
    	<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>
    	</ul>
    </form>

    it will add/duplicate the buttons on the top of your form data in review page


    MachForm Support

    Posted 2 years ago #
  3. Thanks!

    Posted 2 years ago #

RSS feed for this topic

Reply