thunderbird / thunderbird-website

Build code for the websites on thunderbird.net and start.thunderbird.net
https://www.thunderbird.net
142 stars 72 forks source link

Donation support form #435

Closed Sancus closed 1 year ago

Sancus commented 1 year ago

We need a Thunderbird version of the form we currently link to here: https://donate.mozilla.org/en-US/help/

In order to do this we need to figure out how to set up a form that feeds into SalesForce. Presumably it has embeddable forms or some sort of API that can be called by JavaScript to feed support requests in.

Worst case scenario we can do a server side piece that uses the email address, but that's less ideal. We should first determine if we can avoid that.

MelissaAutumn commented 1 year ago

Foundation uses form assembly, we'll get a copy of the embeddable html form (with recaptcha support) either tomorrow or friday.

MelissaAutumn commented 1 year ago

Screen Shot 2023-05-17 at 13 22 08-fullpage Screen Shot 2023-05-17 at 13 30 03-fullpage

Oof that html did not come cleanly. I threw away all of their styling and re-wrote it. I need to confirm that we have the final remote urls (for the js library) before putting a PR up. But it works, and is mostly pretty.

Here's the outstanding work:

One annoying limitation is that FA doesn't handle any form errors on this page, and instead sends you to the unstyled form on their site. I've added a required field to all of the inputs just to avoid that weird case.