Hi there,
I’m having problems getting a Netlify form to work on this page: https://fervent-thompson-1b8733.netlify.app/
Submitting the app returns a page not found error. At least it does for me in Chrome, FF Dev, and Firefox. However, it sometimes works on Chrome if I refresh the page, though this is sporadic. Note that I am using UIKit components. I’ve tried the following fixes:
- Move to pure HTML form instead of using javascript
- Use ‘data-netlify=“true”’ instead of just netlify - It appeared that though Netlify is recognizing the form, it is not stripping out the “data-netlify-true” attribute, so I can switch back to demonstrate this if needed.
- I have removed that action attribute entirely.
- Set the action attribute to:
- /index.html
- /index
- /thankyou/ - a custom redirect page
- /thankyou.html/
- /
- https://fervent-thompson-1b8733.netlify.app/
- https://fervent-thompson-1b8733.netlify.app
- Tried different sapper export features, pointing to both the index.svelte and thankyou.svelte pages
- Pointed to the sapper/build folder instead of sapper/export
- Deleted the service worker
- Added names to all of the input fields.
- Stripped all JS from my page.
- Added in
<input type='hidden' name='form-name' value='Contact Form' />
to my form.
None of this has helped. Not sure what to do.
Here is the current iteration of the form:
<!--Contact Form-->
<form
name="contact-form"
id="contact-form"
data-netlify="true"
netlify-honeypot="botfield"
class="uk-form-horizontal uk-margin-medium"
method="POST"
action="/"
>
<div class="hidden">
<label
>Don’t fill this out if you’re human: <input type="hidden"
name="botfield"
/></label
>
</div>
<input type='hidden' name='form-name' value='Contact Form' />
<div class="uk-margin">
<label class="uk-form-label" for="name">Full Name</label>
<div class="uk-form-controls">
<input
class="uk-input"
id="fullName"
name="fullName"
type="text"
placeholder="First and Last name"
aria-required="true"
required="true"
/>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="email">Email Address</label>
<div class="uk-form-controls">
<input
class="uk-input"
id="emailAddress"
name="emailAddress"
type="email"
placeholder="Email"
aria-required="true"
required="true"
/>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="phone">Phone Number</label>
<div class="uk-form-controls">
<input
class="uk-input"
id="phone"
name="phone"
type="tel"
placeholder="Phone Number"
aria-required="false"
required="false"
/>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="about">Tell Me About Yourself</label>
<div class="uk-form-controls">
<textarea
rows="5"
class="uk-textarea"
id="about"
name="about"
type="text"
placeholder="Tell me about yourself"
aria-required="true"
required="true"
/>
</div>
</div>
<div class="button-wrapper">
<button
form="contact-form"
type="submit"
class="uk-button uk-button-primary">Submit</button
>
</div>
</form>
Any help would be appreciated! Thanks!