Send dynamic data with webflow forms

Hello to all,

I have a real estate website with forms on the listing page. Each listing is dynamically populated with a reference id from the collection. Now when a user submits request for information through the form on the page, the user needs to type the reference of the property which is great as user experience.

Is there anyway I can capture the reference from the page when the user submits the form.

See the listing page here:

Thank you.

Hi @amam

You can capture dynamic data in your form using a custom embed inside the form element.

  1. Add an embed element inside the form

  2. Paste in the script below

  3. Replace the value ID with your Property code Collection field.

Learn more about using Collection fields in custom embeds:

Hope this is helpful. If you have any other questions, please don’t hesitate to reach out and I’ll be happy to help.

So cool. Thank you.
Just love went things work so smoothly :slight_smile:

1 Like

Hi Anna,

My name is Aron, I was wondering if you could help me with a similar issue.

I want to send the total order amount from the my Order confirmation page to Google Ads to track conversion values. This is Google’s code snippet:

gtag(‘event’, ‘conversion’, {
‘send_to’: ‘AW-734713071/vO1pCPO51-wBEO-pq94C’,
‘value’: 1.0,
‘currency’: ‘EUR’

Instead of 1.0 after ‘value’, I want to fetch the total order amount dynamically. Since I have to implement this code inside the head tag on that page, I don’t have the option to “Add field” and use Webflow’s variables (btw I tried that with Google Tag Manager and that didn’t work either).
How can I fetch the data from the totalOrder text box and send it to Google Ads?


Thank you very much in advance,