You are developing a Microsoft Power Platform app. You are developing JavaScript code to set the visibility of a form section based on static data values. The code must run when opening existing records.
How should you invoke the function?
Select only one answer.
A. Register a function by using the TabStateChange event on the section’s containing tab. Use the formContext object to retrieve the tab. Use the tab to retrieve the section.
B. Register a function by using the TabStateChange event on the section’s containing tab. Use the formContext object to retrieve the section.
C. Register a function by using the form’s OnLoad event. Use the formContext object to retrieve the tab. Use the tab to retrieve the section.
D. Register a function by using the form’s OnLoad event. Use the formContext object to retrieve the section.
You are developing a Microsoft Power Platform app. You are developing JavaScript code to set the visibility of a form section based on static data values. The code must run when opening existing records.
How should you invoke the function?
Select only one answer.
A. Register a function by using the TabStateChange event on the section’s containing tab. Use the formContext object to retrieve the tab. Use the tab to retrieve the section.
B. Register a function by using the TabStateChange event on the section’s containing tab. Use the formContext object to retrieve the section.
C. Register a function by using the form’s OnLoad event. Use the formContext object to retrieve the tab. Use the tab to retrieve the section.
D. Register a function by using the form’s OnLoad event. Use the formContext object to retrieve the section.