Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum
Suggested answer

How to get Custom Javascript (in web page form) section to work on Portal Web page

Posted on by 90

I think I'm missing a step or something. I'd like to start to use JS on the Registration page for an event on the portal for events. I can't seem to get it to work with the process below. 

Here's my process:

I grab the id of the field....

step1event.png

Add custom JavaScript to a form - Power Apps | Microsoft Docs - this is for advanced forms but there is a spot for Custom Javascript on the page I am working with (see screenshots below this)

step2event.png

Pretty sure I am grabbing the right page here - the Partial URL matches with the URL of the registration page

step3event.png

I then take the snippet from MS docs and modify the field to match my field from first screenshot. This doesn't seem to work after saving.

step4event.png

My first dive into Marketing and the integration of this with portals. Any help is super appreciated! At the end of the day I am wanting to do some pre-filling registration pages with the current user who is logged in.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to get Custom Javascript (in web page form) section to work on Portal Web page

    Hi johnnylawson,

    You mentioned:this is for advanced forms but there is a spot for Custom Javascript on the page I am working with (see screenshots below this)

    So you are using Advanced find in the web page, Right?

    pastedimage1657532968585v1.png

    If so, you can add one advanced form step:

    pastedimage1657533021112v2.png

    Then you can use js code in the advanced form step, move to 'Form Options' tab and find 'Custom Javascript' section:

    pastedimage1657533097060v3.png

    You can refer the following link for moew details:

    Power Apps Portal – Advanced Forms (Web Forms) and Custom JavaScript (spyglassmtg.com)

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans