Streaming live at 10am (PST)

How to remove form submission from exported project?

I have some forms in webflow, and I am going to be attaching it to custom PHP code soon. However, I noticed that I can already submit the forms even though I have not given them an action yet when I exported the HTML code.

There is no action in the HTML, just classes and IDs for the form elements. What ID or classes do I need to remove so that the webflow javascript is not activated when I submit the form? Here is an example login form I have:

  <div class="login-container">
    <div class="login-block">
      <div class="w-form login-wrapper">
        <form id="email-form" name="email-form" data-name="Email Form" class="w-clearfix login-form">
          <h1 class="login-acct-heading">Log In&nbsp;</h1>
          <input id="Email-2" type="text" placeholder="Email Address" name="Email" data-name="Email" required="required" class="w-input login-text-field">
          <input id="Password" type="email" placeholder="Password" name="Password" data-name="Password" required="required" class="w-input login-text-field">
          <a href="#" class="login-password-link">forgot you password?</a>
          <input type="submit" value="Log In" data-wait="Please wait..." class="w-button login-button">
          <div class="login-acct-separation-div"></div>
          <div class="login-acct-subtext">Need a Tailor</div>
          <div class="login-acct-separation-div"></div>
          <input type="submit" value="Create an Account" data-wait="Please wait..." class="w-button create-acct-button">
        <div class="w-form-done">
          <p>Thank you! Your submission has been received!</p>
        <div class="w-form-fail">
          <p>Oops! Something went wrong while submitting the form</p>
1 Like

Remove class w-form

1 Like

Thanks!! That worked

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.