Question 54
HOTSPOT –
A JavaScript function on a Contact form alerts users to what they need to type, as shown in the JavaScript Code exhibit. (Click the JavaScript Code tab.)


The Business Phone field has the OnChange event handler defined as shown in the Event Handler exhibit. (Click the Event Handler tab.)


Users report that there is incorrect wording on the Contact page, as shown in the Contact exhibit. (Click the Contact tab.)


You need to determine what happens when a user modifies the business phone of a contact record.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:


Correct Answer:


Box 1: Yes –
setNotification displays an error message for the control to indicate that data isnג€™t valid. When this method is used, a red “X” icon appears next to the control. On
Dynamics 365 mobile clients, tapping on the icon will display the message.
Syntax: formContext.getControl(arg).setNotification(message,uniqueId);
Box 2: No –
Box 3: Yes –
setFormNotification displays form level notifications. You can display any number of notifications and they will be displayed until they are removed using clearFormNotification.
Syntax: formContext.ui.setFormNotification(message, level, uniqueId);
Box 4: No –
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui/setformnotification https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/setnotification
NYNY