Skip to main content

Notifications

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

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans