QuestionQ4

Extend the user experience

Telephone numbers for a company must have their values formatted with JavaScript on the OnChange event.

You need to create the JavaScript function.

Which three actions should you carry out, in sequence?

Drag & Drop
Use the getEventSource method to get the column name.
Use the getEventArgs method to get the column name.
Get the global context.
Get the execution context passed to the function.
Format and update the correct column.
Explanation

A model-driven app event handler receives the execution context as a parameter. Its getEventSource method identifies the attribute that raised the OnChange event, allowing the handler to format and set the value of that specific telephone column. getEventArgs supplies event-specific arguments rather than the triggering column name.

Learn more

Community Discussion

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