Fix Dynamics 365 Email To Field Visibility Issue on Initial Form Load
Question details
The user needs to prevent the 'To' field from briefly appearing on the screen when a Dynamics 365 email form opens for the first time.
- Product
- Dynamics 365
- Device & OS
- not provided
- Scenario
- Loading a custom email form in Dynamics 365 where a field is dynamically hidden via form-load JavaScript.
- Observed behavior
- The 'To' field briefly flashes or appears visibly when the form opens, before the OnLoad code successfully executes and hides it.
Ensure you have system administrator or customizer privileges in Dynamics 365 to review and modify form properties, business rules, or JavaScript web resources.
Set the Field to Hidden by Default in Form Properties
Prevent the brief visual flash by ensuring the field is hidden at the UI level before the OnLoad JavaScript runs.
The flashing behavior occurs because the browser renders the default HTML form before the OnLoad JavaScript has a chance to execute. By hiding the field by default in the form editor, you eliminate the delay.
Navigate to Dynamics 365 Settings, select Customizations, and then Customize the System. Locate the Email entity and open the relevant form.
Double-click the 'To' field on the form canvas to open the Field Properties dialog. Uncheck the 'Visible by default' option.
Save the changes and click 'Publish' to apply the new form behavior. Your JavaScript can now be used exclusively to show the field when specific conditions are met.
Consult the Dynamics 365 Community Support
If custom JavaScript behavior continues to cause rendering issues, seek expert assistance from the specialized Dynamics 365 community.
Streamline Your Workflow with WPS Office
While Dynamics 365 manages your customer relationships, you often need a reliable office suite to handle exported reports, spreadsheets, and documentation. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office, ensuring seamless document management without the heavy subscription costs.
- 1. Download and Install: Get WPS Office from the official website and easily install it on your Windows, Mac, or Linux device.
- 2. Open Exported CRM Files: Seamlessly open your exported Dynamics 365 Excel reports and Word templates directly in WPS Office.
- 3. Save in Standard Formats: Edit your documents and save them in standard Microsoft Office formats to ensure easy sharing with your team.

Frequently Asked Questions
Why does a hidden field briefly flash on load in Dynamics 365?
This flash occurs because the browser initially renders the form based on its default UI properties before the OnLoad JavaScript fully executes. If a field is set to be visible by default but hidden via script, it will appear during this split-second processing delay.
Can I use Business Rules instead of JavaScript to hide fields on load?
Yes, Business Rules can often evaluate faster and are much easier to maintain than custom JavaScript. You can create a Business Rule for the Email entity to hide the 'To' field based on specific conditions immediately upon form load.
How do I ensure my Dynamics 365 form scripts run without delays?
In modern Dynamics 365 environments, form scripts load asynchronously to improve overall page performance. To avoid UI glitches like flashing fields, you should rely on the default visibility settings in the form editor rather than forcing synchronous script execution.




