Closed lormayna closed 3 years ago
Not yet, but this is definitely something we want to add in! Can you tell me a bit more about what information you'd want to get and where you'd want the form submission to go?
I was thinking about creating a simple form and send the result to a POST HTTP endpoint (for example hosted on AWS Lambda, Azure Cloud function or Vercel). I know that I can make it embedding HTML, but having something already baked will be great
Il mar 25 mag 2021, 17:13 Travis Kaufman @.***> ha scritto:
Not yet, but this is definitely something we want to add in! Can you tell me a bit more about what information you'd want to get and where you'd want the form submission to go?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/true3dco/splashgen/issues/2#issuecomment-847951241, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMUJC7656WS4NPHO4HD4VDTPO5BLANCNFSM45OZ4SLQ .
Something like this maybe?
site.call_to_action = Form(
endpoint="https://my.endpoint/signup",
inputs={
"firstname": TextInput("First Name", required=True),
"lastname": TextInput("Last Name", required=True),
"email": EmailInput("Email Address", required=True),
"role": SelectInput("Your Role", options=["CEO/Founder", "Engineer", "Finance", "Other"]),
},
submit_text="Join our waitlist")
Yes, this will be great 😊
Il mer 26 mag 2021, 18:48 Travis Kaufman @.***> ha scritto:
Something like this maybe?
site.call_to_action = Form( inputs={ "firstname": TextInput("First Name", required=True), "lastname": TextInput("Last Name", required=True), "email": EmailInput("Email Address", required=True), "role": SelectInput("Your Role", options=["CEO/Founder", "Engineer", "Finance", "Other"]), }, submit_text="Join our waitlist")
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/true3dco/splashgen/issues/2#issuecomment-848940415, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMUJC66KWSABBSDTMLGSVDTPUQ7HANCNFSM45OZ4SLQ .
Should be added in as of v0.0.28! pip install -U splashgen
👯 Let me know if you run into any issues!
Is there a way to add a custom form?