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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PowerApps Portals cust...
Power Pages
Unanswered

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:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 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
    36,383 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard