---
schema_version: "1"
id: d8616c0cff1261b5dad63017bfccfde312a0293439e274d2b352da5ad6f7130c
title: Configure the Launch Button Click Event
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/configure_the_button_click_event.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.configure_the_button_click_event.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 07bc0df5cfbc427878674c4a0b33240daccb161a8eb4116d6b3ac15f89a95715
description: In the Modeler workspace, create an event handler to handle the maps app launch button click event. The Google Maps app opens when a sales rep taps the launch button on a product display record page in the Consumer Goods Cloud offline mobile app. This UI action is known as an event.
products:
  - Consumer Goods
release: "264"
---
# Configure the Launch Button Click Event

In the Modeler workspace, create an event handler to handle the maps app launch button click event. The Google Maps app opens when a sales rep taps the launch button on a product display record page in the Consumer Goods Cloud offline mobile app. This UI action is known as an event.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d43341e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d43341e63 ">To configure the launch button click event:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d43341e63 ">CG Cloud Developer, Admin</td>

          </tr>
        </tbody>
      </table>

1. To implement the event handler for the UI action, add this snippet to the View Action Events node in the process contract in your Modeler workspace: `MyDisplay_DisplayDetailsProcess.processflow.xml`.
    
    ```
    <Event name="NavigateTo" action="NavigateTo"/>
    ```
2. To call the NavigateTo method, create an action in the Action section.
    
    ```
    <!-- Call the NavigateTo Function if the button is pressed-->
    <Action name="NavigateTo" actionType="LOGIC" call="ProcessContext::CurrentDisplay.MyNavigateTo">
      <TransitionTo action="ShowDisplayDetails" />
    </Action>
    ```
3. Save your changes.
4. To check for validation errors, build your contracts. Run `sf mdl build`.