openform icon indicating copy to clipboard operation
openform copied to clipboard

Support <form> elements

Open jxxe opened this issue 2 years ago • 1 comments

I have a feature request!

It would be cool if I could use openform in an HTML <form> tag.

<form method="POST" action="https://openform.eliot.sh/FORM_ID?redirect=REDIRECT_URL">
    <input type="email" name="emailAddress" placeholder="[email protected]"/>
    ...
</form>

Additionally, it would be cool if I could specify a redirect URL to return to. This could either be required, or if none is provided it could fall back to a plainer and prettier version of Google Forms' confirmation page. You could even scrape the custom message provided by the user from that page.

jxxe avatar Aug 24 '23 08:08 jxxe

This sounds like a great idea! The only issue I can think of is that name of the field would probably need to be the id of the field instead of something pretty.

Also, fun fact: this might already work? Openform supports a form response request type, I'm just not sure how that data is actually sent from a default HTML form.

I'll look into it! Redirect URLs are also a good idea.

eiiot avatar Aug 25 '23 05:08 eiiot