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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

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

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans