Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Lookup within Marketing Forms

(0) ShareShare
ReportReport
Posted on by 15

The lookup enhancement is not working for me. I have followed all of the documentation regarding enabling relevance search and everything in this thread (https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/381518/use-a-country-lookup-on-a-marketing-form/1019774#1019774). When the form loads, the field is populated with [object Object] as shown below. Does anyone know why this is happening? Thanks

pastedimage1583775300921v1.png

  • JV_FLA Profile Picture
    JV_FLA 22 on at
    RE: Lookup within Marketing Forms

    Defne,

    The page that you linked talks about how to include the right JS file to use the API, but for some reason doesn't link to an API reference.   Maybe I just haven't had enough coffee yet or something, but it seems like it should be VERY EASY to find the reference, and yet it's not clear to me where to find that.

    Could you please provide us all a link?

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Lookup within Marketing Forms

    Hi Theodore,

    It seems that https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.59.1039.0(*) works for Geron.

    please open you marketing form page and search for this tag in its source HTML code:

    <script type="text/javascript" src="https://mktdplp102cdn.azureedge.net/public/latest/js/loader.js?v=1.59.1039.0" id="ms_form_loader_script_08"></script>

    then replace src with *.

    Regards,

    Clofly

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Lookup within Marketing Forms

    Hi,

    As Defne suggested,

    I found my working form is loaded with

    https://mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.59.1039.0

    https://maoalex.best/custom/welcome.html

    While Geron's 

    is https://mktdplp102cdn.azureedge.net/public/latest/js/loader.js?v=1.59.1039.0

    Try to do replacement to test whether it could work.

    Regards,

    Clofly

  • Suggested answer
    RE: Lookup within Marketing Forms

    Hi Theodore,

    You might be using old script, as we have switched to new scripts for newest features. 

    Make sure that your references to form-loader.js or loader.js script look like 

    mktdplp102cdn.azureedge.net/.../form-loader.js 

    or 

    mktdplp102cdn.azureedge.net/.../loader.js respectively.

    For more information on this: 

    docs.microsoft.com/.../marketing-form-client-side-extensibility

    Could you please share the URL of your page where the form is so we can take a look? 

    Thanks,

    Defne Ayanoglu

    Dynamics 365 for Marketing team

    Please mark as verified if the answer is helpful.

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Lookup within Marketing Forms

    Hi Theodore,

    Did you also use single text field to represent lookup field entity records?

    Do all options in drop-down list display in [Object Object]?

    pastedimage1583827191434v2.png

    Apart from this, form loader will create a list element above lookup input field, you can find it with browser inspector(F12) and see retrieved records in the list.

    pastedimage1583827021025v1.png

    Please check text in option value attribute of your marketing form.

    Regards,

    Clofly

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…

Vahid Ghafarpour – Community Spotlight

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans