Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

Launch entity form

(0) ShareShare
ReportReport
Posted on by 87

Is it possible to launch an entity form via JavaScript.. I have a custom table and would like to display an entity form when clicking on a button . I know I can display a web page but a form would be better for me.

 

Thank G

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Launch entity form

    Hi @Esox76 ,

     

     Maybe this will help. please give it a try.  There are few things that are a bit of compromise. 

     

    In Dataverse: 

    1. Once you have your columns defined in the table. 

    2. Under the forms section > Either create a new form or use the existing form ( main, quick view form) 

    3. Click Data Tab > Click Add record 

    4. Now copy the URL 

     

    In Portal Studio: 

     

    1. Assuming your custom table is inside a web page and that table has a button on it 

    2. In the button add the "onclick" event  like below and paste in the entity form URL as a hyperlink (document. location)

     

    <p>This website uses sample data for illustration purposes. You can build pages using multiple templates available.</p>
    <div class="row sectionBlockLayout" style="display: flex; flex-wrap: wrap; text-align: left; min-height: 100px; padding: 8px; margin: 0px;">
     <div class="container" style="display: flex; flex-wrap: wrap;">
     <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;"><button type="button" onclick="document.location='https://yourentityformURL.crm6.dynamics.com/main.aspx?cmdbar=true&amp;forceUCI=1&amp;navbar=off&amp;newWindow=true&amp;pagetype=entityrecord&amp;etn=cr63b_employee'" class="btn btn-primary">Primary</button></div>
     <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;"></div>
     <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;"></div>
     </div>
    </div>

     

     

     

    ragavanrajan_0-1615159223650.png

    And the output is 

     

    ragavanrajan_2-1615159315619.png

     

    PS: There are various ways you can trigger a click event. The one I have added is the easiest solution. 

     

    Hope it helps. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35