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

Announcements

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 79 Super User 2026 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 58 Most Valuable Professional

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 42 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans