Re: Is it possible to configure Autofill settings via REST API ?

Victor_Herrero
Level 5

Is it possible to configure Autofill settings via REST API ? 

I have been investigating the possibility of scripting a series of modifications to ALL forms on the instance. Once possible scenario is a field that needs to be added to all forms (GDPR, GCLID, ...)

This method let's you "upload a config file" to a form field: 

https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Form_Fields/u... 

In the GCLID scenario though, it's not enough to just set the field type to hidden, you also need to set where to get the value from and the parameter name. 

pastedImage_2.png

However, it seems these two settings are not possible via REST API? 

Has anybody managed this or found a workaround? 

Thanks in advance!

3 REPLIES 3
mr-marketo
Level 1

Re: Is it possible to configure Autofill settings via REST API ?

Hi Victor,

 

Did you ever figure this out? I have the exact same problem.

mr-marketo
Level 1

Re: Is it possible to configure Autofill settings via REST API ?

I just confirmed this is possible via Postman using the following fields (undocumented from what I can tell):

 

{
    'fieldId': 'GCLID',
    'fieldType': 'hidden',
    'valueFrom': 'cookie',
    'parameterName': 'gclid
}
SanfordWhiteman
Level 10 - Community Moderator

Re: Is it possible to configure Autofill settings via REST API ?

You can fight and fight to reverse-engineer the right payloads here, and for very little payoff.

 

I recommend instead you inject a Rich Text Area, have that RTA load a single external JS file, and have that JS file manage all your form behaviors via the standard Forms JS API.