Skip to content

Contact - Pipedrive #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Contact - Pipedrive #31

wants to merge 7 commits into from

Conversation

sachinmjadhav
Copy link
Contributor

Integrated pipedrive with contact form

@Kameshwaran
Copy link
Contributor

PR looks ok to me.

Copy link
Member

@sanandnarayan sanandnarayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have some way to have the js run only in the contact page. this is not urgent so we can do this correctly

if(typeof window !== 'undefined') {
let userDetails = {}
let SITE_NAME = window.location.origin
document.getElementById('contact-form') &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kameshwaran should we put this in JS only in the contact page. in header.js means it will come in every page right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep it in the header.
This JS not only contains form handling logic, but also tracks the list of pages browsed by the visitor. That info also sent in the form when a visitor submits it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanandnarayan
Copy link
Member

may be the form logic should be a part of the form component , and not a part of the header template?

@sanandnarayan sanandnarayan self-requested a review July 26, 2019 15:31
@sanandnarayan sanandnarayan requested review from Kameshwaran and removed request for sanandnarayan July 26, 2019 15:31
@Kameshwaran
Copy link
Contributor

may be the form logic should be a part of the form component , and not a part of the header template?

Replied here.


const ThankYou = () => {
return (
<CenteredDiv>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://theme-ui.com/guides/layouts , can we use main component from https://theme-ui.com/guides/layouts instead of centered div

const idea = document.getElementById('idea').value
const email = document.getElementById('email').value
document.getElementById('contact-submit').disabled = true
document.getElementById('idea').value = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kameshwaran why reset values even when there is an error?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks.

@Kameshwaran
Copy link
Contributor

@sachinmjadhav please make the fixes commented by @sanandnarayan

@sanandnarayan
Copy link
Member

@sachinmjadhav you can deprioritize this for now. i am kinda liking formspree with its spam filters. also we added chat to our website, so let this PR be open for now @Kameshwaran

@Kameshwaran
Copy link
Contributor

This PR is important for us.
The current website does not have '/thank-you' page after submitting the form.
The '/thank-you' page is very important for us, as goal conversion is tracked by google analytics only on that page. @sanandnarayan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants