Skip to main content

Notifications

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.

  • 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans