Appnitro Software Forums » MachForm 2

Change The Submit Button Of Form


  1. Hi
    I want to change the default submit button of form to new submit button which i have designed.
    My submit button image is of 106x36 in size.

    Help in this issue is highly appreciate.
    Regards
    satish

    Posted 4 months ago #
  2. redityo

    Hi There,

    You will need customize "includes/view-functions.php" file for this. Go to line 1766 and you will see this code :

    <input id="saveForm" class="button_text" type="submit" name="submit" value="{$button_text}" />

    then change the code to be like this

    <input id="saveForm" class="button_text" type="image" src="images/exec.png" name="submit" value="{$button_text}" />

    and if you are using "advance embed code". You need go to line 2113 and you will see these code :

    $submit_button = '<input type="hidden" name="submit" value="1" />'."\n".'<input id="saveForm" class="button_text" type="submit" name="submit" value="'.$lang['submit_button'].'" />';

    then change the code to be like this :

    $submit_button = '<input type="hidden" name="submit" value="1" />'."\n".'<input id="saveForm" class="button_text" type="image" src="images/exec.png" name="submit" value="'.$lang['submit_button'].'" />';

    don't forget to change "src" value with your image path.


    MachForm Support

    Posted 4 months ago #

RSS feed for this topic

Reply