Appnitro Software Forums » MachForm

How do I Clear Fields?

(3 posts)

  1. waitz
    Member

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

    Posted 3 years ago #
  2. 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}" />
    Posted 3 years ago #
  3. waitz
    Member

    Great, thanks

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.