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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans