SOLVED

Re: Getting the form Name and logged IP address though the Form API

Go to solution
Grégoire_Miche2
Level 10

Getting the form Name and logged IP address though the Form API

Dear all,

As part of the GDPR, some DPO's are requesting that we add some information in lead fields, rather than simply using the fill-out-form activity details. Amongst the information that they request to be logged are:

  • The IP address that was used to submit the form
  • The form Name

We can get these 2 info through {{trigger tokens in a fills-out-form trigger campaign.

Yet, for various reasons (performance, reliability), we would like to avoid using these if possible. We can quite easily get the form ID from the forms API and add it as a hidden field there.

  • But, AFAIK, there is no possibility to get the form name through this same way. Am I correct ?
  • And also, it seems impossible to also get the IP address that is recorded by Marketo in the Fills-out-form activity (and this makes sense, since the IP address is gathered from the http transaction rather than from the browser, if I am getting it right). Am I correct as well?

Thx

-Greg

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Getting the form Name and logged IP address though the Form API

That's right, you can only get the name if you manually load the form descriptor (it's in there but there's no public accessor like getId()).

The browser also can't know its own public IP. You need to use the ipify API or similar.

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Getting the form Name and logged IP address though the Form API

That's right, you can only get the name if you manually load the form descriptor (it's in there but there's no public accessor like getId()).

The browser also can't know its own public IP. You need to use the ipify API or similar.