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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Reset button image


  1. xirnibor
    Member

    I have edited my theme and added a submit button image, however i have written in a reset button in view-functions.php - the reset button is grey and standard? i'd like to use a similar reset image that i have on my submit button. any idea where i can add that?

    Posted 9 years ago #
  2. xirnibor
    Member

    i removed the reset button until i can figure out how to add the image overlay - fearforest.net/contact.html is the page - you can see the image for submit - i've tried editing the view-functions.php and the button does show as a reset, but it loses form functionality (submit doesn't submit) -

    this is what i had, where the button showed, but code broke -

    //default markup for single page form submit button
    $button_markup =<<<EOT
    <li id="li_buttons" class="buttons">
    <input type="hidden" name="form_id" value="{$form->id}" />
    {$edit_markup}
    <input type="hidden" name="submit_form" value="1" />
    <input type="image" src="../../images.reset.png" onclick="this.form.reset()" name="reset" value="Reset" />
    <input type="hidden" name="page_number" value="{$page_number}" />
    {$submit_button_markup}

  3. EOT;

Posted 9 years ago #

RSS feed for this topic

Reply