PL-400 · Question #182
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is B. No. The scenario requires automatically opening a Contact form when a new Account is created and switching to an appropriate form layout based on contact type, with contact type data passed via JavaScript. The answer is No because in model-driven apps, you cannot dynamically switch…
Question
Options
- AYes
- BNo
How the community answered
(22 responses)- A23% (5)
- B77% (17)
Explanation
The scenario requires automatically opening a Contact form when a new Account is created and switching to an appropriate form layout based on contact type, with contact type data passed via JavaScript. The answer is No because in model-driven apps, you cannot dynamically switch between different form layouts purely by passing parameters through a JavaScript-opened form. Form selection in Dataverse model-driven apps is controlled by security roles and form order configuration - not by runtime URL parameters or JavaScript arguments. While you can open a form with pre-populated field values using Xrm.Navigation.openForm() and pass parameters, those parameters cannot drive which form definition/layout is loaded. The correct architecture for layout switching based on contact type would use business rules, form-level OnLoad logic reading a field value, or configuring separate forms with role-based visibility.
Community Discussion
No community discussion yet for this question.