Not sure if I'm asking this right...
I need to pass a few lead IDs at the form submission event but am unable to add hidden fields to the form. Is it possible to update the lead entity in CRM (ZOHO) right after form submission, via the POST method, using only JavaScript? (I have access to google tag manager and nothing else)
This is the scenario: lead is submitted via a web form which triggers custom JS Google tag manager tag use some kind of webhook to update newly created lead in CRM.
Is this possible or do I need to provide better info?
Thank you very much
It is difficult to achieve without having more details on the structure of the payload, the destination, the way the form is implemented, etc.
You still can add hidden fields to the form with GTM although that wouldn't be considered the best usage for it.
What you've described is doable, but it's unlikely that the form submit trigger will be of any help since modern forms are not using the native html submit functionality due to it being obsolete. Same goes for the form fields. Adding a hidden field is unlikely to influence the payload.
On the other hand, ZOHO may allow for arbitrary correctional hits to be sent to its endpoints to enrich already collected data, which I doubt would be very smooth.
in short, GTM is not the right tool to do it. It may be possible, but even if it is, it's not the proper way and is likely to cause problems in future. Consider involving your front-end or CRM devs.