The Action Button control lets you trigger specific events like - Navigating to a screen, sending the email, etc. For example, we can configure an action button to call a specific number or send an SMS.

Properties

UI Properties

  • Label: Label is the text that is displayed above the Action Button and helps the user to understand what the Action Button is for.
  • Properties: These properties help you customize the Label by changing the text size, weight( Light, Normal, Bold, Extra Bold, X Extra Bold), alignment (Left, Center, Right, Justified) and color of the label.
  • Type: The Type field is automatically generated depending upon the type of control used. In this case, it is a “Button1” type.
  • Unique Name: A Unique Name is used to uniquely identify a control in your App. Every control that is added on the screen gets an auto-generated Unique Name on the basis of the Label name given to the control.
  • Hidden: The hidden option helps you to hide the button from the user. This might help if you want to show certain buttons only when a specific condition is met/not met.
  • Caching: When the caching option is selected and if a LOOKUP formula is applied to this control, the state that the LOOKUP returns will be cached and the user will be able to see this state in the Action Button even when he accesses the microapp later with no connectivity. This option is required when you want your app to be accessible in offline mode as well and getting the latest data from the sheets always is not critical.

Properties

  • Text: This option lets you change the text that will be displayed on the Action Button.
  • Font Properties: The font properties let you customize the text that is displayed on the Action Button. You can change the Text Size, Weight (Light, Medium, Bold, Extra Bold or X Extra Bold), Alignment (Left, Center, Right or Justified), and Color.
  • Background Properties: Background properties are used to customize the background of the Action Button. You can set the Color, Style (Outline or Filled) and Roundness of the button.

How to Use an Action Button?

Start with selecting the Action Button from the Button section of the Controls Menu.

The Action Button will then appear on the screen in the builder, you can then set all the above mentioned properties as per your requirements.

Once you add the Action control on the app, click on the A icon to open Action dropdown and select the Action that you want to perform. You can use the built in options for actions to be performed or write your own formula. This is the list of built in options.

  • Exit App: This action will exit from the current microapp. In other words, if the action is used in an Action control and when the user clicks on the control, the microapp will exit and the user will be taken to DronaHQ Unified App home screen.
  • Call: It is used to call specific Phone number. You can enter the country code and the Phone number that is to be dialed when a user clicks on this action button.
  • SMS: It is used to send a text message. You can enter the Country code and Phone number to which you want to send the message to and also write the message that should be sent.You can also send the message to more than one recipient using the Add option.
  • Email: It is used to send Email to specific Email ID. This will open the phone's Email App to send Email with the corresponding message and email id populated in the fields for the same. Similar to SMS you can send the email to more than one recipient.
  • Navigate To: This option lets you select the screen within the Microapp that you want to navigate to when the Action Button is clicked.
  • Actions: You can use this option to write formulas to perform actions or set the Action Button to perform more than one action at once by adding multiple actions. For Calling the external Apis, you can use the CALLAPI function. For More info - Refer this article

You can use the F option to bind data to the Action Button and the V option to add validations to the field. You can learn more about validations here. There are four ways in which you can bind data to the Action field.

  1. Static Data: By using the Static option, you can directly type in the text for each option that you want to display and add more options by pressing Enter key when you are at the last option. You can use the Selected option to define which of the options you wish to be selected by default.
  2. Sheet: The Sheets option allows you to get data from a sheet and display it as the options of the Action Button.
  3. Control: Control options allows you to bind data to the Action Button by using another control’s value present in the microapp.
  4. Formula: The Formula options can be used to apply formulas and store the output of those formulas in the Action Button. You can learn more about formulas here.

Preview

Did this answer your question?