Where does the action attribute points ? Mautic instance? then you only need php support on server where mautic is installed.
Thanks for the quick response! It what I thought too. Yes Mautic is installed and has been running on a server with php 7.4
Our main website we moved to a new server that use React / Windtail CSS but the form on it is just not submitting the data over to Mautic.
All other form on other servers are working fine just not on the cloud that use React to load website.
how exactly did you include the form using react? I can see there will be challenges to do so, due to how react construct the page dynamically, and constantly changes the HTML DOM, which can mess the loading and manipulation done by mautic, I think the safest way to include the form would be to use the iframe option.
Will react also break the Mautic tracking code too?
a workaround is to implement the tracking in the react app it self by calling the mautic pixel everytime there is an action in the react app that is worth tracking, the documentation briefly explore that possibility : Contact tracking | Mautic
ok, from what I can see this page does not use react. so the solution might be easier, I can take a look later today
It’s really frustrating me to get this working again.
Our department decided to contract out to have new website developed and I was told they are using react and tailwind css to develop the new site. Maybe they went with other method and not updated me.
ok, I check the page now and it seem the form is loading. they change from form 111 to form 17, so perhaps the problem was just the wrong id.
But looking at the page source code, they are not including the form as it says in the documentation:
instead of including the script tag where the form is to be generated , they manually include a form tag then include a script that injects the mautic form inside that form.
I don’t think it is a problem to include the script the way they did, the only problem is to include a form within a form, I think they are trying to submit the same form to two different places, but this can lead to unexpected behavior since its prohibit in html4/5 standards.
The 17 is the correct id for this form. Sorry I will fix my previous post and correct it.
that may be causing my issue?
yes, that might be the issue, they should remove that form element
They did and it’s working!
I thought it was generated by Mautic when I saw it … Thank you so much for pointing that out!
but in my browser it seem to be working
That cuz I told them to that that element out … it was not needed … I am not even sure why they added it in.