Lucy
  • Introduction to Lucy
  • Getting Started
  • Key Components
  • Gallery (Dashboards)
    • Creating a Canvas
    • Editing Properties of a Canvas
    • Searching and Viewing Your Canvases
    • Adding Widgets onto Your Canvas
    • Customising User-created Widgets on a Canvas
    • Adjusting Widget Settings
    • Moving a Widget around a Canvas
    • Resizing a Widget on a Canvas
    • Filtering Data in a Widget
    • Deleting a Widget from Your Canvas
    • Building a Widget from Your Canvas
    • Customising a Canvas
  • My Work (Folders)
    • Creating a New Folder
    • Searching and Viewing Your Folders
    • Adding Notes related to a Folder
    • Databases
      • Understanding Databases
      • Creating and Editing Databases
        • Creating a Database Manually
        • Creating a Database by Importing Data from an External Source
        • Using an External Source as a Database
        • Editing Fields in a Database
      • Editing Data in a Database
      • Using the Database Collection Viewer
      • Searching, Filtering, and Sorting Data in a Database
      • Exporting Data from a Database
      • Utilising Content-aware Autofill to Automatically Fill in Fields in Your Database
      • Entering a Question about Databases within a Folder to Build Your Own Widget
      • Adding Data into a Database
    • User Interfaces
      • Designing a User Interface
        • Designing a User Interface to Visualise Information
        • Designing a User Interface to Capture User Feedback
        • Designing a User Interface from Scratch
      • Working with the Widget Designer
      • Selecting a Widget Template
        • Item List Widget Template
      • Viewing Your User Interfaces
      • Sharing a User Interface
      • Saving a Widget as a Template
      • Exporting a User Interface
      • Enabling Anonymous Access to a User Interface
    • Workflows and Integrations
      • Using the Workflow Editor
      • Creating Workflows
      • Creating a Workflow to Run When New Data is Added to a Database
      • Creating a Workflow to Run When an Email is Received
      • Creating a Workflow to Run When a Message from a Chatbot is Received
      • Creating a Workflow that Runs at Specified Intervals
      • Viewing and Editing Your Workflows
      • Automating Form Submission with Email Notification
      • Automating Form Submission with Slack Message
  • Add-ons
    • Installing a New Add-on in Lucy
    • Visitor Management
    • Monitoring Internal Air Quality (IAQ) at Your Workplace
    • Setting up Occupancy Analytics at Your Workplace
    • Energy Budgeting
    • Water Budgeting
    • Gas Budgeting
    • Carbon Footprint Calculation
    • Weather
  • Mobile App
    • Getting Started
    • Designing Your Mobile App
      • Working with the Mobile App Designer
      • Handling Button Click Events
      • Designing the Login Page
      • Designing the Homepage
      • Designing the Settings Page
      • Choosing a Page Type
      • Adding a New Tab to the Bottom Navigation Bar
      • Launching a Widget on Tab Click
  • Users
    • Registering a User
    • Creating a User Group
    • Searching and Viewing Users
    • Editing User Details
    • Your Profile
  • News Feeds
    • Creating a News Feed
    • Searching and Viewing News Feeds
    • Editing a News Feed
Powered by GitBook
On this page
  • Action Editor Window
  • Open a Web Page
  • Open a Pre-built Widget
  • Execute a Lucy Action
  • Open an Add-on
  • Open a Mobile Screen
  1. Mobile App
  2. Designing Your Mobile App

Handling Button Click Events

PreviousWorking with the Mobile App DesignerNextDesigning the Login Page

Last updated 8 months ago

When customising your mobile app via the Lucy web app, you can control the actions triggered by button clicks. Here are the five types of actions available:

You will also encounter button click events when creating widgets, such as the Search widget.

Action Editor Window

Use the Action Editor window to set actions for clickable elements like buttons and icons. It supports five types of actions: open a web page, launch a pre-built widget, execute a Lucy Action, open an add-on, and open a mobile screen.

Open a Web Page

You can configure a button to open a specific web page when clicked.

For example, when you click on the Help section in your mobile app's Settings page, it opens the Help page.

To open a web page

  1. On the Lucy web app homepage, go to the Mobile App tab. Mobile app designer page displays.

  2. On the mobile screen, click the Settings page icon in the bottom tab bar navigation. The Settings page will open on the mobile screen.

  3. On the Settings page, click the required section (e.g., Help) to open the properties panel.

  4. In the Properties panel, go to respective section and click Edit Action. The Action Editor window opens.

  5. Navigate to the Open URL tab.

  6. Enter the URL of the required web page.

  7. Choose how you want to open the web page: New Tab or Current Tab.

  8. Click Done.

  9. Click Save.

  10. Open the Settings page in your mobile app and click the specific section to launch the web page.

Open a Pre-built Widget

For example, when you click on the Personal Details section in your mobile app's Settings page, it opens the corresponding user-created widget, a form to edit personal details.

To launch a pre-built widget

  1. On the Lucy web app homepage, go to the Mobile App tab. Mobile app designer page displays.

  2. On the mobile screen, click the Settings page icon in the bottom tab bar navigation. The Settings page will open on the mobile screen.

  3. On the Settings page, click the required section to open the properties panel.

  4. In the Properties panel, go to respective section and click Edit Action. The Action Editor window opens.

  5. Navigate to the Open Widget tab.

  6. Select the required widget.

  7. Enter Parameter names and values if necessary.

  8. Click Done.

  9. Click Save.

  10. Open the Settings page in your mobile app and click the specific section to launch the respective widget.

Execute a Lucy Action

Set up a Lucy Action to trigger when a specific button is clicked, such as sending a notification after creating a work request.

Open an Add-on

You can select an add-on to be opened when certain button is clicked in your mobile app.

For example, you can add an icon to your app home page to open the Weather add-on when clicked.

To open an add-on

  1. On the Lucy web app homepage, go to the Mobile App tab. Mobile app designer page displays.

  2. Under Sections, drag and drop the Icon Section Widget to the mobile screen.

  3. An icon section widget will be added and displayed on the mobile screen.

  4. An icon will be added and displayed on the mobile screen. Click the newly added icon to launch its properties panel.

  5. Pick an icon image, Background Colour, Icon Colour and a Label.

  6. Click the Edit Action button to open the Action Editor window.

  7. Go to Open Add-on tab.

  8. Once the action is configured, click Done.

  9. An icon will be added and displayed on the mobile screen.

  10. Click the newly added icon to launch its properties panel.

  11. Click the Icon field to pick a suitable icon from the Search Icons window.

  12. Choose a Background Colour.

  13. Choose a Icon Colour.

  14. In the Label box, type a unique name for the icon.

  15. Click the Edit Action button to launch the Action Editor window.

  16. Navigate to the Open Add-on tab.

  17. Select the required add-on, e.g, Weather.

  18. Click Done.

  19. Click Save to save and apply the changes in the mobile app.

  20. Open the home page in your mobile app and click the icon to launch the respective add-on.

Open a Mobile Screen

You can set a button to open a predefined mobile screen. These screens are specific to the mobile app.

For example, choose a predefined mobile screen, like the Currency page, to display when you click on the Currency section in your mobile app's Settings page.

To open a mobile screen

  1. On the Lucy web app homepage, go to the Mobile App tab. Mobile app designer page displays.

  2. On the mobile screen, click the Settings page icon in the bottom tab bar navigation. The Settings page will open on the mobile screen.

  3. On the Settings page, click the required section to open the properties panel.

  4. In the Properties panel, go to respective section and click Edit Action. The Action Editor window opens.

  5. Navigate to the Open Mobile Screen tab.

  6. Select the required mobile screen (e.g., Currency).

  7. Click Done.

  8. Click Save to save and apply the changes in the mobile app.

  9. Open the Settings page in your mobile app and click the specific section to launch the respective mobile screen.

to learn how to create a simple widget.

Click the Add icon.

Open a Web Page
Open a Pre-built Widget
Execute a Lucy Action
Open an Add-on
Open a Mobile Screen
Click here
Action Editor Window
Open a web page
Open a pre-built widget
Open a mobile screen