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

Announcements

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 249

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

*
*
 
 

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

    Hi,

    Could you let me know what modification do you want to add to the form?

    Regards,

    Clofly

  • Hedi bn Profile Picture
    249 on at

    hey , i want to add the JavaScript function

  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    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

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
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2026 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 49

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 26 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans