Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

JavaScript in Marketing Form

(0) ShareShare
ReportReport
Posted on by 235

Hey everyone,

I have a form that is already live and i want to add some Modification (using Javascript).Can anyone help me to add the javascript to the form.
this is my Code :
	
Digital-Kompass-Newsletter

Abonnieren Sie unseren
Digital-Kompass Newsletter!

Nach der Ãœbermittlung Ihrer Kontaktdaten erhalten Sie von info@digital-kompass.de einen Bestätigungslink, um die Anmeldung abzuschließen.

* Pflichtfelder

*
*
 
 

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: JavaScript in Marketing Form

    Hi Hedi,

    Are you using marketing form instead of your own built form(not capture form)?

    If so, please:

    1. Move JavaScript function to source code of marketing page, because JavaScript in source code of marketing form will always be ignored.

    2. Marketing form has its own API for us to perform custom validation at form submission, so whole code within your formValidate function should be put inside MsCrmMkt.MsCrmFormLoader.on('formSubmit', function(event) {}) function.

    Here is sample validation using Marketing Form API:

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility#examples

    Regards,

    Clofly

  • Hedi bn Profile Picture
    Hedi bn 235 on at
    RE: JavaScript in Marketing Form

    hey , i want to add the JavaScript function

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: JavaScript in Marketing Form

    Hi,

    Could you let me know what modification do you want to add to the 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

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,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans