I'm trying to open a new form to the side of an existing record. However, when I try, I open the form in the same window instead of the side. The following is my code:
var entityFormOptions={};
entityFormOptions["entityName"] = "account";
entityFormOptions["windowPosition"] = 2;
var formParameters={};
formParameters["email"]="test@test.com";
Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
function(success){
console.log(success);
},
function(error){
console.log(error);
});
Thanks for the response, but I haven't seen any examples using side panes where I can set form fields with default values like in the example I used where I used Xrm.Navigation.openForm and set the email field to test@test.com.
you need to use the side pane functionality, you can find an example inside the documentation:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156