Which JS tech stack for a contact form service?

Hello,

I’m thinking of creating a service, similar to a contact form service.
People should include a simple form on their website. I’d provide the form for them.
This form posts data to my GraphQL API, I process the data in the backend and return a result.
The result should show on the same page as the form.

I’ve looked at some options but my webdev skills are a bit rusty (HTML + PHP) and I’d like to get feedback on pros and cons of JS stacks for this idea.

Well I suggest you look at other services that already do this. I can tell you that some of your competitors already do this with simple IFrames or using simple JS scripts that a person can simply copy and paste on their page. I don’t think the back end tech really matters all that much, so whatever is comfortable for you would be fine (I guess PHP in your case). But I know of other services that use Ruby (like Ruby on Rails) or Python (using Django).

But again, the main focus should be integration options for your customers and there you can do the two technologies I mentioned. They are easy to implement, supported in most browsers (if not all), are usually enabled automatically and provides a ton of flexibility in managing forms from your side. For instance if they are iframing, then it is your form they are inlining to their site. In the case of JS, it is your script they are usually referring to so you can code that however you want.

I hope that helps. :slight_smile:

1 Like

I guess I’ll go with JS then.

The reason for the JS Stack question was simply because I’d like to learn something new - looked into Gatsby, Vue and jQuery and it can be difficult to decide without knowing the frameworks well.