web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Form Capture - is it possible to use hidden lookup value?

(0) ShareShare
ReportReport
Posted on by 2,761

Have used Form Capture to get data from an external website and create lead/contact records - this is working well.

Have created some hidden text fields to capture extra data we need - this is working well

What I want to do now is have a hidden field on the form that has a static value - the field needs to map to a Lookup in Dynamics 365 Marketing a) is this possible to map to a lookup, b) if so, what value do I put  on the external web page form (anything special because its a lookup etc).

Thanks

(note: if manually creating the landing page from scratch in Marketing to achieve what I want, I would add a hidden lookup field and set a default value - in this situation the form has to be via Form Capture not manually constructed)

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi LA,

    Currently only embedded form supports with look up field.

    A workaround is that you could create an optionset field Source form type and a simple line text field for Contact entity.

    The optionset field is used to indicate whether the contact is from the capture form, and we save name of lookup record to the text field.

    4188.JPG

    By default, the source form type could be set to "Capture form", and hide those two custom fields.

    Then create a flow, it only starts when the optionset equals to "Capture form", use value from the text field to retrieve mapping record of look up field,

    finally populate the real lookup field with retrieve id value. 

    Regards,

    Clofly

  • cloflyMao Profile Picture
    25,210 on at

    Hi Luke Adams,

    Could the workaround work for you?

    Regards,

    Clofly

  • Suggested answer
    Defne Ayanoglu Profile Picture
    Microsoft Employee on at

    Hi LA, 

    Have you figured this out? 

    You can try to do this by using it as a text box with default value and create CRM workflow that will translate this text value to a lookup.

    In the workflow, you can specify this: 

    [oncreate of contact] [if sourceformid=my form] [set lookupfield=some value] 

    Hope this helps, 

    Defne

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 197 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans