Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to auto populate a hidden form field?

(0) ShareShare
ReportReport
Posted on by 35

Hi there,

We have several brands with different websites containing different D365 forms. I need to know which website has generated the form fill as a record against the contact/lead to make it easy for follow-up.

So I thought putting a hidden field on the form would be a good way to do this.

But how do I populate a field with the right brand name? So that every form fill from a Contact us form has a specific brand associate with the lead?

I'd appreciate help here.

Thank you.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: How to auto populate a hidden form field?

    Hi,

    The website cannot be filled in automatically by adding it into the marketing form as a form field.

    But you can find it in the Insights tab of the marketing form.

    pastedimage1654154005738v1.png

    You can export the submissions.

    Then extract the contact info from the "Form submissions" column.

    Import the Page URL based on the contact info.

  • mhoekstra Profile Picture
    mhoekstra 140 on at
    RE: How to auto populate a hidden form field?

    Hi,

    community.dynamics.com/.../how-do-i-populate-lead-source-from-a-hidden-field-on-marketing-form might help you.

    Other way is to use javascript to populate the hidden field. See stackoverflow.com/.../using-javascript-to-populate-a-hidden-field-from-url-parameter. But you will need some scripting knowledge.

  • Shiiiison Profile Picture
    Shiiiison 10 on at
    RE: How to auto populate a hidden form field?

    I'd love some insight on this as well!

    Thanks Everyone!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans