Hiya,
I have a site that’s setup on https://engageelectronics.netlify.com/ that has the following formik form:
<form name="bookings" method="POST" action="/thank-you/">
<input type="hidden" name="form-name" value="bookings" />
<div className="multi-column">
<label>
Name
<span>What's your name?</span>
<input
id="fullName"
name="fullName"
type="text"
onChange={formik.handleChange}
value={formik.values.fullName}
/>
</label>
<label>
Phone number
<span>What number can we contact you on?</span>
<input
id="phoneNumber"
name="phoneNumber"
type="tel"
onChange={formik.handleChange}
value={formik.values.phoneNumber}
/>
</label>
</div>
<div className="multi-column">
<label>
Email address
<span>And your email address?</span>
<input
id="emailAddress"
name="emailAddress"
type="email"
onChange={formik.handleChange}
value={formik.values.emailAddress}
/>
</label>
<label>
Location
<span>Where is the faulty appliance?</span>
<select
id="location"
name="location"
onChange={formik.handleChange}
value={formik.values.location}
>
{locations.map(location => (
<option key={location.label} value={location.value}>
{location.label}
</option>
))}
</select>
</label>
</div>
<label>
Description of your appliance
<span>
Tell us the name and model of your appliance, e.g. Samsung
UA-46EH5300
</span>
<input
id="applianceDescription"
name="applianceDescription"
type="text"
onChange={formik.handleChange}
value={formik.values.applianceDescription}
/>
</label>
<label>
Problem with your appliance
<span>Tell us what's wrong with your appliance</span>
<textarea
id="applianceProblem"
name="applianceProblem"
onChange={formik.handleChange}
value={formik.values.applianceProblem}
rows="6"
></textarea>
</label>
<div className="multi-column">
<label>
Preferred Date for Repair
<span>When should our technician visit?</span>
<SingleDatePicker
numberOfMonths={1}
date={date}
onDateChange={date => setDate(date)}
focused={focused}
onFocusChange={({ focused }) => setFocused(focused)}
id="preferredDateForRepair"
openDirection={OPEN_UP}
noBorder={true}
block={true}
displayFormat="dddd, DD MMMM YYYY"
/>
</label>
<label>
Preferred Time for Repair
<span>What time is best for you?</span>
<TimePicker id="preferredTimeForRepair" />
</label>
</div>
<input type="submit" value="Submit booking" />
</form>
Submission is being handled using a static HTML version of the form and I’m receiving the form submissions just fine. However, even after adding the action attribute as specified in the documentation, my form still displays the Netlify success page instead of the custom one. See screenshot below:
I have tried using a different /thankyou URL, and switched from a submit button to submit input…
I have read through the other posts that mention the same issue but haven’t been to replicate their success in my particular case.