Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

[FEAT] - HTML Form for mailing list signup #18

Closed
jaspermayone opened this issue Dec 11, 2023 · 19 comments · Fixed by #21
Closed

[FEAT] - HTML Form for mailing list signup #18

jaspermayone opened this issue Dec 11, 2023 · 19 comments · Fixed by #21
Assignees
Labels
💻 aspect: code Related to code implementation or modification. 🕹 aspect: interface Related to user interface or design. 🔢 complexity: 3 With a complexity level of 3. ⭐ goal: addition Focused on adding new features or functionalities. 🟧 priority: high With high priority. 🔒 staff only Restricted for internal staff discussions. 🚦 status: awaiting triage Awaiting initial assessment and assignment. 🏁 status: ready for dev Ready for development work. 🧹 status: ticket work required Requiring administrative or ticket-related work.

Comments

@jaspermayone
Copy link
Collaborator

What feature would you like to see?

HTML form for mailing list signup > airtable api (data backend) > sendy

Additional information

Going HTML form route to match branding on site as best as possible.

@jaspermayone jaspermayone added ⭐ goal: addition Focused on adding new features or functionalities. 🏁 status: ready for dev Ready for development work. 💻 aspect: code Related to code implementation or modification. 🔒 staff only Restricted for internal staff discussions. 🕹 aspect: interface Related to user interface or design. 🚦 status: awaiting triage Awaiting initial assessment and assignment. 🟧 priority: high With high priority. 🧹 status: ticket work required Requiring administrative or ticket-related work. 🔢 complexity: 3 With a complexity level of 3. labels Dec 11, 2023
@jaspermayone jaspermayone moved this to Todo in Purple Bubble Dec 11, 2023
@taciturnaxolotl
Copy link
Member

We can use Netlify forms to transfer the data. I'm pretty sure they integrate with Airtable.

@jaspermayone
Copy link
Collaborator Author

That could work, the most native/nicest look would be through an HTML form tho.

@taciturnaxolotl
Copy link
Member

Netlify forms is just a HTML form that is caught by Netlify

@jaspermayone
Copy link
Collaborator Author

LOL

That works then

@vcc3v
Copy link
Contributor

vcc3v commented Dec 12, 2023

I think sendy actually has form-signup templates as well as branding options. I could create one and then use an iframe for the signup page

@taciturnaxolotl
Copy link
Member

That would work! My main concern would be people who block iframes as well as how native it would feel.

@jaspermayone
Copy link
Collaborator Author

Weighing in here. I think we should do popup and Netlify forms route, as lots of people do block iframes.

@vcc3v
Copy link
Contributor

vcc3v commented Dec 12, 2023

I could try to directly embed it…

@jaspermayone
Copy link
Collaborator Author

@CaenJones would really love if you could work with @kcoderhtml here, as they have ideas on how this should/will work.

@taciturnaxolotl
Copy link
Member

He is designing the form and i'll port everything to astro

@jaspermayone
Copy link
Collaborator Author

CleanShot 2023-12-12 at 20 50 24@2x

@jaspermayone
Copy link
Collaborator Author

For the form, we are doing native HTLM (rly astro) via netlify forms to push to both airtable and sendy

@jaspermayone
Copy link
Collaborator Author

<form action="https://postal.hackclub.com/subscribe" method="POST" accept-charset="utf-8">
	<label for="name">Name</label><br/>
	<input type="text" name="name" id="name"/>
	<br/>
	<label for="email">Email</label><br/>
	<input type="email" name="email" id="email"/><br/><br/>
<input type="checkbox" name="gdpr" id="gdpr"/>
<span><strong>Marketing permission</strong>: I give my consent to Purple Bubble to be in touch with me via email using the information I have provided in this form for the purpose of news, updates and marketing.</span>
<br/><br/>
<span><strong>What to expect</strong>: If you wish to withdraw your consent and stop hearing from us, simply click the unsubscribe link at the bottom of every email we send or contact us at [email protected]. We value and respect your personal data and privacy. To view our privacy policy, please visit our website. By submitting this form, you agree that we may process your information in accordance with these terms.</span>
<br/><br/><div style="display:none;">
	<label for="hp">HP</label><br/>
	<input type="text" name="hp" id="hp"/>
	</div>
	<input type="hidden" name="list" value="xjAecLBfJ3HdnmuBXhvkfg"/>
	<input type="hidden" name="subform" value="yes"/>
	<input type="submit" name="submit" id="submit"/>
</form>

@jaspermayone
Copy link
Collaborator Author

I am totally cool if we just do this and leave out Airtable, as that just complicates things.

@taciturnaxolotl
Copy link
Member

That works for me! Would you want this as a pop up or can i move it to a new page?

@jaspermayone
Copy link
Collaborator Author

Fine either way! Sendy handles redirects for subscribed and such, so we should handle those as well!

@taciturnaxolotl taciturnaxolotl linked a pull request Dec 14, 2023 that will close this issue
@taciturnaxolotl
Copy link
Member

I created a draft PR, but need some help debugging the function. The response of the function is always nothing, and I can't figure out why.

@jaspermayone
Copy link
Collaborator Author

I will see if I can reproduce on my end.

@jaspermayone
Copy link
Collaborator Author

@thepurplebubble/website might someone be able to take a look?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💻 aspect: code Related to code implementation or modification. 🕹 aspect: interface Related to user interface or design. 🔢 complexity: 3 With a complexity level of 3. ⭐ goal: addition Focused on adding new features or functionalities. 🟧 priority: high With high priority. 🔒 staff only Restricted for internal staff discussions. 🚦 status: awaiting triage Awaiting initial assessment and assignment. 🏁 status: ready for dev Ready for development work. 🧹 status: ticket work required Requiring administrative or ticket-related work.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants