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 / Make Invitation Code a...
Power Pages
Answered

Make Invitation Code as readonly on Portals

(0) ShareShare
ReportReport
Posted on by 189

Hi folks

 

As you know we have an Invitation Code field on PowerApps portals (Redeem Invitation page). I want to make that field as readonly so that no one can edit that.

 

I know it can be done either using CSS or writing JS. Can anyone help me with that? 

 

Cheers

Arafat

 
 
Categories:
  • Verified answer
    Arafat Profile Picture
    189 on at

    I managed to solve it using JS so here's the sample code;

     

    <script>
    
    $(window).load(function() {
    
    document.getElementById("InvitationCode").readOnly = true
    
    });
    
    </script>
  • Pranjali Profile Picture
    Microsoft Employee on at

    Thanks for the answer!

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
Mohsin Ali Profile Picture

Mohsin Ali 35

#2
M Bilal Khan Profile Picture

M Bilal Khan 33

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard