Hi Pratices,
You could use openForm method to open task form. Something like the following code:
function openTaskForm(executionContext){ var formContext = executionContext.getFormContext(); // Get value var field_value = formContext.getAttribute("[your field name]").getValue(); var formId = ""; if(field_value != null){ if(field_value === "value1"){ formId = "formId1"; }else{ formId = "formId2"; } var entityFormOptions = {}; entityFormOptions["entityName"] = "task"; entityFormOptions["formId"] = formId; var formParameters = {}; // Open the form. Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); }); }else{ //do something } }
Hi,
You can try below code -
Function OpenTask() { var entityFormOptions = {}; entityFormOptions["entityName"] = "task"; entityFormOptions["formId"] = "D5B4A1B2-DE4F-4F86-8768-B0730001E7D1"; // Open the form. Xrm.Navigation.openForm(entityFormOptions).then( function (success) { console.log(success); }, function (error) { console.log(error); }); }
entityFormOptions["formId" = "D5B4A1B2-DE4F-4F86-8768-B0730001E7D1";
You can get formId from Settings->Customization->Customize the system->Entity->Task->Form->Open specific form then copy the id from url
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
I am also having this problem in the form of the website genie resumes USA I am working on. Can I use open form method here to make things right?
This is the main issue i was facing before a very long time in a form of my project which based on fashion shearling coats and jackets . And i want to resolve me. Please guide me. Please contact on my profile.
Hey i am kristin! Have a nice day! I saw your page and want to discuss right now the main problem is occurring in my blog Samsung Phone Repair Services form. But getting fail to sort out this problem.
No, it doesn't work out. I already tried it out on my site https://100dollarsresume.com/ Instead, you should try the HTML form or elementor form.
The major problem we all are facing now a days, i am a regular reader of your page and in my every time visit i mens biker leather jackets explore and get something different. Hopefully will resolve these issues soon as possible.
The plot of the game is extremely simple, users just need to touch the screen to control the bird to overcome the obstacles. [Flappy Bird](https://flappy-bird.io) However, when you step into the game, you will feel that it is "unreasonably difficult" and just like that you are absorbed in the game, you frantically plow the country in inhibitions and anger...
The plot of the game is extremely simple, users just need to touch the screen to control the bird to overcome the obstacles. Flappy Bird However, when you step into the game, you will feel that it is "unreasonably difficult" and just like that you are absorbed in the game, you frantically plow the country in inhibitions and anger...
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 159
MVP-Daniyal Khaleel 152
Tom_Gioielli 134 Super User 2025 Season 2