QuestionQ306

Extend the user experience

HOTSPOT -

A JavaScript function on a Contact form alerts users about what they need to enter, as shown in the JavaScript Code exhibit. (Click the JavaScript Code tab.)

Question Image

The Business Phone field's OnChange event handler is configured as shown in the Event Handler exhibit. (Click the Event Handler tab.)

Question Image

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

Question Image

Determine what occurs when a user changes a contact record's business phone.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
The message “telephone1” shows in the Business Phone notification area.
The message “mobilephone” shows in the Business Phone notification area.
The message “telephone1” shows in the form notification area.
The message “mobilephone” show in the form notification area.
Explanation

The second supplied event-handler parameter, mobilephone, becomes sMessage. Because the Business Phone control triggers the event, getEventSource() targets that control and setNotification displays mobilephone there. setFormNotification also uses sMessage, so it displays mobilephone as an INFO-level form notification before the timeout clears it. telephone1 is supplied as the first custom parameter but is not used by the function.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!