Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Registration form doesn't load

(0) ShareShare
ReportReport
Posted on by 40

Hi Everybody

I have created Event in D365M. I have also created Registration Form in D365M. I want to host this registration form on external website. I have all settings in order (I have searched through the whole forum to find my specific problem and checked all of the settings).

I am using script to host the form on external page. My problem is, that the form on the website shows an error:

pastedimage1602755742228v1.png

Of course I checked if my event is live, and it is. So is the form.

How the registration should work is, that we will send out invitation emails, with button that will redirect contacted person to the page, where we are hosting the registration form. We don't have a webpage for the event itself. 

Please, help

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi MaiElorym,

    It is very glad that your form finally works. :)

    If you had found any answer helped, please kindly mark as verified to close the thread, it would be really appreciated.

    Regards,

    Clofly

  • MaiElorym Profile Picture
    MaiElorym 40 on at
    RE: Registration form doesn't load

    Hi Clofly :)

    Thank you so much for your help. It took a little while for the website and the dynamics to communicate with each other but now I can see the form on the website :)

    And also our test submission is working.

    Thank you once again with all your help :)

    All the best

    MaiElorym

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi MaiElorym,

    The form will be injected to web page by the script.

    pastedimage1602837346321v1.png

    You could do following steps to troubleshoot:

    1. Open console to check whether there is error message.

    2. As I have shown in my posted screenshot, check whether the form element is actually generated. (By selecting the div which has data-form-block-id attribute.)

    (Check whether the form is set to be hidden by any custom CSS rule.)

    3. Are you using any plugin to add the script to page?

    For some of plugins of Wordpress, they will put custom code into iframe element.

    Check whether there is iframe element on your page with inspector.

    If exists, create a blank page to add the script.(In other word, create a web page by yourself.)

    Regards,

    Clofly

  • MaiElorym Profile Picture
    MaiElorym 40 on at
    RE: Registration form doesn't load

    Hi Clofly,

    I have coppied the script from Form hosting field, but now nothing happens on the website itself. Even the initial error dissapeared. Could that be a problem of the CMS system?

    MaiElorym

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi MaiElorym,

    By coping the script from Form hosting field of event, does marketing form for event registration display on your external website now?

    Regards,

    Clofly

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi MaiElorym,

    Advanced settings > Customizations > Customize the system > Entities > Event > Form > Event(main)

    pastedimage1602765721077v1.png

    pastedimage1602766016755v2.png

    In form editor, we can check business rules and any enabled javascript in form properties.

    pastedimage1602766109294v3.png

    You could set the field to be visible by default, then save and publish the form.

    pastedimage1602766615747v4.png

    pastedimage1602766655517v5.png

    Regards,

    Clofly

  • MaiElorym Profile Picture
    MaiElorym 40 on at
    RE: Registration form doesn't load

    Thanks a lot for this.

    I run the command, and I could see the field where the Form Hosting should be visible.

    Do you maybe know, where I could look for the business rules/javascript functions you are reffering to?

    Regards

    MaiElorym

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi MaiElorym,

    Thanks for sharing your process.

    However, script of related marketing form page(in form hosting tab.) is used to run landing page or subscription center;

    instead, we should use the automatically generated script from form hosting field of event.

    As expected, the field will display once the "use marketing form for registrations" is enable and a specific event is selected.

    You could run following command in console to try to check whether the field was hidden and could work.

    Xrm.Page.getControl("msevtmgt_formpagejavascriptcode").setVisible(true);

    pastedimage1602763756705v1.png

    If the field could display and the script could work on your external page, then check whether the field was hidden by any possible business rules or other custom javascript functions.

    pastedimage1602763851121v2.png

    Regards,

    Clofly

  • MaiElorym Profile Picture
    MaiElorym 40 on at
    RE: Registration form doesn't load

    Hi Clofly,

    When I created marketing form I used the option "Form hosting" directly in the form settings:

    pastedimage1602762644008v1.png

    The form uses prefilling (the settings for that are in order, domain where I am hosting the form is also authenticated. I checked that with the admins). When i go to the "Related Marketing form pages" and click on the page there, this is what I can see:

    pastedimage1602762819029v3.png

    What I added into the external page is the highlited part (it is longer than what I am showing).

    On my event page I don't have the script:

    pastedimage1602762894079v4.png

    Thank you so much

    MaiElorym

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Registration form doesn't load

    Hi Partner,

    Did you use the automatically generated script from Form hosting field?

    pastedimage1602762388267v1.png

    In addition to above setting, please also make sure your domain has been authenticated in advanced settings.

    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans