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

How do I Clear Fields?


  1. waitz
    Member

    I would like to add a button for clearing the fields in a form. How can I do that?

    Posted 16 years ago #
  2. redityo

    Hi,

    You should edit "view-functions.php" to do that, goto around line 1760 and you will find this code :

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

    replace with

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

    MachForm Support

    Posted 16 years ago #
  3. waitz
    Member

    Great, thanks

    Posted 16 years ago #

RSS feed for this topic

Reply