Site: infopageprimer.com
Form in public dir: [https://6333723b99cc0b0008e6228a--info-pageprimer.netlify.app/hero-form.html)
TLDR; forms are already in html format in public directory. Interactive forms are [statically generated] by Astro. I use the “@astrojs/netlify/functions” pluggin. I use Solid Js (react, basically) for the components.
Greetings. I have been attempting for a couple of days to get forms recognized by netlify systems. I have followed this blog. I’ve also combed through the forum. My forms are Sever Side Rendered as static html with some interactive islands. I have included html copies of these forms in my public directory. I believe they have all the correct tags. I previously had two of the same form (with different id’s etc) on the same page, but I’ve already tried with just the one. It seems no matter what I try, the forms are not scanned by the bots.
Any help is greatly appreciated. Thank you.
form in question
<form data-netlify="true" netlify-honeypot="hero-bot-field" name="hero-inquiry" method="POST" action="/" class="lead-form astro-LU2IJ532">
<p class="hidden astro-LU2IJ532">
<label class="astro-LU2IJ532">
Do not fill this out if you are human: <input name="hero-bot-field" class="astro-LU2IJ532">
</label>
</p>
<input type="hidden" name="form-name" value="hero-inquiry" class="astro-LU2IJ532">
<div class="form__container astro-LU2IJ532">
<div style="width: 100%;" class="md:!w-[48%] astro-LU2IJ532">
<label id="hero-inquiry-form-first-name-label" for="hero-inquiry-form-first-name" class="lead-label astro-LU2IJ532">First Name</label>
<input id="hero-inquiry-form-first-name" type="text" name="hero-inquiry-form-first-name" aria-labelledby="hero-inquiry-form-first-name-label" class="astro-LU2IJ532">
</div>
<div style="width: 100%;" class="md:!w-[48%] astro-LU2IJ532">
<label id="hero-inquiry-form-last-name-label" for="hero-inquiry-form-last-name" data-required="true" class="astro-LU2IJ532">Last Name</label>
<input id="hero-inquiry-form-last-name" type="text" name="hero-inquiry-form-last-name" aria-labelledby="hero-inquiry-form-last-name-label" required class="astro-LU2IJ532">
</div>
</div>
<div class="astro-LU2IJ532">
<label id="hero-inquiry-form-email-label" for="hero-inquiry-form-email" data-required="true" class="astro-LU2IJ532">Email</label>
<input id="hero-inquiry-form-email" type="email" name="hero-inquiry-form-email" aria-labelledby="hero-inquiry-form-email-label" required class="astro-LU2IJ532">
</div>
<div class="astro-LU2IJ532">
<label id="hero-inquiry-form-message-label" for="hero-inquiry-form-message" data-required="true" class="astro-LU2IJ532">What would you like to accomplish?</label>
<textarea id="hero-inquiry-form-message" wrap="soft" name="hero-inquiry-form-message"" aria-labelledby="hero-inquiry-form-message-label" required class="astro-LU2IJ532"></textarea>
</div>
<div class="submit-container astro-LU2IJ532">
<button type="submit" class="lead-button astro-LU2IJ532">Send Message</button>
</div>
</form>
html file form inside public dir
<form action='/' class='astro-5I22QLQQ lead-form' method='POST' name='hero-inquiry'>
<p class="astro-5I22QLQQ hidden"><label class=astro-5I22QLQQ>Do not fill this out if you are human: <input class=astro-5I22QLQQ name=hero-bot-field /></label></p>
<input class=astro-5I22QLQQ name=form-name type=hidden value=hero-inquiry />
<div class="astro-5I22QLQQ form__container">
<div class="astro-5I22QLQQ md:!w-[48%]"style=width:100%><label class="astro-5I22QLQQ lead-label"for=hero-inquiry-form-first-name id=hero-inquiry-form-first-name-label>First Name</label> <input class=astro-5I22QLQQ name=hero-inquiry-form-first-name aria-labelledby=hero-inquiry-form-first-name-label id=hero-inquiry-form-first-name /></div>
<div class="astro-5I22QLQQ md:!w-[48%]"style=width:100%><label class=astro-5I22QLQQ for=hero-inquiry-form-last-name id=hero-inquiry-form-last-name-label data-required=true>Last Name</label> <input class=astro-5I22QLQQ name=hero-inquiry-form-last-name aria-labelledby=hero-inquiry-form-last-name-label id=hero-inquiry-form-last-name required/></div>
</div>
<div class=astro-5I22QLQQ><label class=astro-5I22QLQQ for=hero-inquiry-form-email id=hero-inquiry-form-email-label data-required=true>Email</label> <input class=astro-5I22QLQQ name=hero-inquiry-form-email aria-labelledby=hero-inquiry-form-email-label id=hero-inquiry-form-email required type=email /></div>
<div class=astro-5I22QLQQ><label class=astro-5I22QLQQ for=hero-inquiry-form-message id=hero-inquiry-form-message-label data-required=true>What would you like to accomplish?</label> <textarea aria-labelledby=hero-inquiry-form-message-label class=astro-5I22QLQQ id=hero-inquiry-form-message name=hero-inquiry-form-message" required wrap=soft></textarea></div>
<div class="astro-5I22QLQQ submit-container"><button class="astro-5I22QLQQ lead-button"type=submit>Send Message</button></div>
</form>