Passing utm values to hidden field

Permalink Browser Info Environment
I need to pass UTM values into hidden form fields from urls. e.g. http://www.url.com?utm_source=facebook...

In standard concrete5 forms this fails as 1. there is no hidden field option and 2. the field cannot be named appropriately e.g name="utm_source"

Is this possible in Formidable?

Type: Pre-Sale
Status: In Progress
katalysis
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

Yes you can add default values in many fields.
Default values can be User or Page Attributes, but also dynamic data like $_GET.

Best,

Corretje
katalysis replied on at Permalink Reply
katalysis
Hi Corretje,

I'm trying this now.

The problem is that the hidden field renames itself and therefore the value is not received. I need to pass in:

https://www.katalysis.net/?utm_source=facebook...

But Formidable renames this field utm-source-10.

I need to get to a place where formidable gives the field the proper name 'utm_source'. Can you suggest how this might be achieved?
DeWebmakers replied on at Permalink Reply 1 Attachment
DeWebmakers
Hi,

Here a screenshot of how to setup your hidden-field.
Hope this helps.

Best,

Corretje
katalysis replied on at Permalink Reply 1 Attachment
katalysis
I'm trying this now but every time I try to add 'utm_source' to the request dat field it replaces the text with this string (see screenshot)

*?*************************************************'

I've tried a couple of different browsers and still get the problem.
DeWebmakers replied on at Permalink Reply
DeWebmakers
Aha! I see...
You need to change a file to fix this for now..
Open your site with an FTP-client and go to /packages/formidable_full/views/dialogs/elements/dialog.php and go to line 153
There you see this code
echo $form->text('default_value_request', $element->getPropertyValue('default_value_value'), array('data-mask' => '*?************************'));

change this to:
echo $form->text('default_value_request', $element->getPropertyValue('default_value_value'));


Then save and reload. This should fix the issue for now. I'll update the addon asap.

Best.

Corretje
katalysis replied on at Permalink Reply
katalysis
I can now set this up in the admin but the form still shows the old name and doesn't populate with the request info.

You can see here:

https://www.katalysis.net/web-design/web-designer?utm_source=faceboo...
DeWebmakers replied on at Permalink Reply
DeWebmakers
Please provide me with the C5-login details and the FTP-login details.
I need to see what is happening...

Send them to wim@dewebmakers.nl please.
I'll take a look asap!
katalysis replied on at Permalink Reply
katalysis
Access details sent by email yesterday p.m.

Thanks.

concrete5 Environment Information

Version 8

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.