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 :
Power Platform Community / Forums / Power Pages / PowerApps Portals cust...
Power Pages
Answered

PowerApps Portals custom HTML or javascript field

(0) ShareShare
ReportReport
Posted on by 94

hi, i follow this blog for multiselect option fields: https://www.engineeredcode.com/blog/powerapps-portals-multiselect-option-set?unapproved=1174&moderat... , but i not find the html or javascript field??

 

Can anyone help me please?

 

Kind regards

Categories:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Just adding a link to the answer here...

    https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Portals-custom-HTML-or-javascript-field/m-p/549168/highlight/false#M169298 

     

    ---

    You can add the JavaScript via the Portal Management app. Select your entity form and go to Additional Settings > Custom Javascript.

    This Javascript contains the markup to create the multi-select.

     

    image.png

  • PowerPat Profile Picture
    94 on at
    thanks, but why is that code not working?
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @PowerPat 

    Most likely, this is a timing issue. I would wrap the formula in a call to the jQuery ready function.

     

    $(document).ready(function(){
     
     var favouriteColour = $('#cre23_widgetcolor');
     favouriteColour.hide();
    
     var multiselect = $('<select multiple><option value="948180000">Red</option><option value="948180001">White</option></select>');
     multiselect.insertAfter(favouriteColour);
     multiselect.change(function() {
     favouriteColour.val($(this).val());
     });
    
    });

     

     This works for me.

    image.png

    The other thing to do is to make sure to set this line correctly so that it matches your field name.

    $('#cre23_widgetcolor');

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!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 110

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 24

Last 30 days Overall leaderboard