I am trying to add a Contact Me form to a pinned post on a write.as blog. However, it seems that the way posts are rendered won’t let me do so.
# Contact Me
<form
action="https://formspree.io/f/redacted"
method="POST">
<label for="from">
Your email:
</label> <!-- This label disappears entirely when looking at a "View Source" on the rendered post. Only the text remains.
<input type="text" name="_replyto""id="from"> </input> <!-- this input is now no longer programmatically associated with the label, rendering screenreaders and other assistive technologies unable to determine what the form field is called.
<label for="message">
Your message:
</label> <!-- same deal, this label element vanishes and only leaves its inner text.
<input type="text" name="message" id="message"></input> <!-- this was actually a <textarea> but that element seems to not render at all.
<button type="submit">Send</button> <!-- this just shows up as the word "Send" without any HTML markup.
</form>
What am I doing wrong here?
Hi @zersiax, thanks for bringing this up! This doesn’t look like anything on your end, but on ours – we remove certain HTML elements when the page renders.
We’ll get this fixed so you can share this form, likely within the next day or two. Will keep you updated here!