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
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
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&forceUCI=1&navbar=off&newWindow=true&pagetype=entityrecord&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>
And the output is
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.
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35