We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8893
    • 4 Posts
    Okay, I thought I knew how to do this, but I’m not getting it right! I was wondering if one of you eform gurus could help me figure out which elements to alter in the following code to make it eform-ready. I know how to create the Report and Automessage to accompany it ... just can’t get the form itself to submit!

    Here is the original, unchanged form I’m trying to convert. I’ve tried changing the action attribute, adding name attributes, adding eform attributes, etc., but there’s apparently some big conflict going on here! Is this type of form incompatible with eForm?

    ---

    <h3>Contact Form</h3>
    <p class="txt1">Blah blah blah about the form. </p>
    <form action="" method="post" id="contacts-form">
    <fieldset>
    <div class="row-2 wrapper">
    <div class="col-1">
    <div class="field">
    <input type="text" value="Name:" onfocus="if(this.value==’Name:’){this.value=’’}" onblur="if(this.value==’’){this.value=’Name:’}" />
    </div>
    <div class="field">
    <input type="text" value="E-mail:" onfocus="if(this.value==’E-mail:’){this.value=’’}" onblur="if(this.value==’’){this.value=’E-mail:’}" />
    </div>
    <div class="field">
    <input type="text" value="Fax:" onfocus="if(this.value==’Phone:’){this.value=’’}" onblur="if(this.value==’’){this.value=’Phone:’}" />
    </div>
    </div>
    <div class="col-2">
    <div>
    <textarea cols="1" rows="1">Comments:</textarea>
    </div>
    <div class="link"><a href="#" onclick="document.getElementById(’contacts-form’).reset()">reset</a><a href="#" onclick="document.getElementById(’contacts-form’).submit()">submit</a></div>
    </div>
    </div>
    </fieldset>
    </form>

    ---

    Thanks so much!
    Elizabeth
      • 8893
      • 4 Posts
      Okay, finally figured it out. This is what I did:

      - added eform’s hidden formid field
      - changed action from "" to "[~[*id*]~]"
      - added name attribute to the form (same as id attribute)
      - added name attribute to each field
      - changed value= to eform= for each field
      - note that I’m NOT using verification at this point

      Hope it helps someone out there.