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

Community site session details

Session Id : bHDBKQ2EwzBEidmr1o+yBX
Power Pages - Power Apps Portals
Unanswered

Launch entity form

Like (0) ShareShare
ReportReport
Posted on 7 Mar 2021 20:17:14 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

I have the same question (0)
  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 07 Mar 2021 at 23:22:48
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 85 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 43

#3
dgray304 Profile Picture

dgray304 39

Last 30 days Overall leaderboard
Loading complete