CMS Development

Evatorres
Member

onFormReady doesnt work

Hi

I am trying to put the timestamp value defined in my wordpress in the field ga_timestamp (is hiden). But it doesnt work. this is the page I am using to test: https://www.hhp.es/evento/aenfipa-oviedo/

¿Someone know how to solve this problem?

This is the code I am using:

<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
    css: '',
    portalId: '733325',
    formId: 'e235c113-fbff-4852-ad60-a0da6d7b1128',
    onFormReady($form, ctx){
        $('input[name="ga_timestamp"]').val(timestamp).change();   
       }
  });
</script>
0 Upvotes
1 Reply 1
edjusten
HubSpot Employee
HubSpot Employee

onFormReady doesnt work

Hi @Evatorres Welcome to the community. Apologies that no one has responded back to you. Please let me know if this issue still needs attention, and I will do my best to find a resoure to help. As this is more of a technical question than a COS design specific question, you may also want to head over to our developers community and post there. 

 

Ed

 

INBOUND 2017 is just around the corner. Find out more at inbound.com or check out the post on the main Community page and check out the upcoming AMA with Deb Calvert.


Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes