Hi, Hubspot Developers
We are using the WordPress platform to run our website, On the website pages we have different dates that are identical to our HubSpot forms, the problem is every time we try to change a date on one of the forms we need to do it on every page.
My question is there any way I can synchronize the ‘dates’ of the forms with the dates on pages This means just when I change the date on the HubSpot account the date will change automatically on the WordPress website?
Thank you.
If I’m understanding you correctly there’s some element in your Hubspot form that displays a date, is that right?
I’m guessing you’d need to use javascript if you were trying to pull a date from within a Hubspot form to some other element on your wordpress page.
Specifically you’d prbably need to use the OnFormLoad Global Event Listener.
Then within that you’d need to copy the date from whatever form element houses it to wherever you want it on your Wordpress page.
Barry Grennan
Freelance HubSpot CMS Developer
Website | Contact | LinkedIn
Hi, Barry
Yes, you’re right, but I’m not good at writing javascript code, I will be really appreciated it if you could show me an example to use it, here are the links to an example:
Link to the form: https://www.codingdojo.africa/apply-full-time-onsite/
Link to the program page that associate with the form: https://www.codingdojo.africa/coding-bootcamp/
Thank you
Your form is on a different page to the page you want it to affect?
This is definitely a custom code job. You’d need to hire a Wordpress developer to create a plugin for you that let’s you point page one to page 2 to pull the information. It’s maybe possible with ajax but I don’t imagine it’s a quick job, definitely a number of hours of work.
Barry Grennan
Freelance HubSpot CMS Developer
Website | Contact | LinkedIn