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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Make a Marketing Form Submission in the Background using JavaScript

(0) ShareShare
ReportReport
Posted on by 11,325 Microsoft Employee

Hi Experts,

Do we have a similar method for Dynamics 365 Marketing - https://developers.marketo.com/blog/make-a-marketo-form-submission-in-the-background/ 

We could see one for Form capture but not for embedded form ?

https://learn.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility#mscrmmktmscrmformloader-methods 

Thanks,
Nishant Rana

I have the same question (0)
  • Petr Jantac Profile Picture
    Moderator on at

    Hello,

    Could you please describe the intended use case? Why do you need to submit and embedded form in the background? This would help to find the proper solution.

    Thank you.

    Petr

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    Hi Petr, Yes the idea is to  hide the embedded marketing form, sets its value based on other form on the page and than submit it.

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    One option could be hide the form, and call click function of the submit button and in   MsCrmMkt.MsCrmFormLoader.on('formSubmit', function (event) - set the value of each of the field.

  • Verified answer
    Petr Jantac Profile Picture
    Moderator on at

    Hi,

    I think it would be easier to use the Form capture feature.

    This feature captures the submission from forms which were not created in Marketing. It will automatically generate the JavaScript code you need, so you just put it into your page.

    Please let me know if this worked for you.

    Petr

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    Thanks for replying Petr. Actually we want to use Prefill feature as well, so next time when the user visits, we want to show hide content on that page, which I think doesn't work with Form Capture.

  • Suggested answer
    Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    We called the click event of the submit button to do so  - nishantrana.me/.../

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 66 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans