A Submit button control is used for updating the data entered by a user in the fields of an app to a Sheet or to trigger other workflows. It enables Workflows that initiate further actions. For example, a submit button can be used in a Timesheet app that lets the user fill in the work done and then update it to a sheet

Properties

UI Properties

  • Label: Label is the text that is displayed above the Submit Button and helps the user to understand what the Submit 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 “submit_button” 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 Submit 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.
  • Hide Label: This option hides the label of the Submit Button from the view.

Properties

  • Text: This lets you change the text that will be displayed on the Submit Button.
  • Confirmation Popup: If this is selected, the user gets a popup message when they click the Submit button to confirm the submission.
  • Popup Title: This only appears when the Confirmation Popup option is selected and is used to give the Confirmation Popup a title.
  • Popup message: This appears only when the Confirmation Popup is selected. It is used to write the message that is to be displayed to the user while asking for the confirmation.
  • Offline Submission: The Offline submission lets the user submit data even when their device is offline.
  • Success Callback: It is the event that happens after the action that is triggered by the Submit Button takes place. There are three callback options that you can choose from depending upon the use case of your microapp.
  1. Popup Message: This is the default Success callback action that displays a Popup message one the triggered action is performed. You can set the Title and Message of the Popup Message.
  2. Custom Page URL: When this Success callback is used, the user is redirected to a custom URL which you can set in the option for the URL which appears when this type of callback is used.
  3. Internal Page: When Internal page Success Callback is used, the user is redirected to another screen of the same app that you can set in the option provided below on the menu. You can also set a delay time and transition animation for redirecting.
  • Font Properties: The font properties let you customize the text that is displayed on the Submit 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 Submit Button. You can set the Color, Style (Outline or Filled), and Roundness of the button.

How to Use a Submit Button?

Start with selecting the Submit Button form the Button section of the Controls Menu.

You will see that the workflow option at the top will get enabled. You can then use this workflow option to trigger actions. To read more about workflows click here.

You can use the F option to bind data to the Submit 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 Submit Button field.

  1. Static Data: This is used to directly type in the text for each option that you want to display and add more options by pressing the 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: This allows you to get data from a sheet and display it as the options of the Submit Button.
  3. Control: This allows you to bind data to the Submit Button by using another control’s value present in the microapp.
  4. Formula: This is used to apply formulas and store the output of those formulas in the Submit Button. You can learn more about formulas here.

Preview

Submit button

Confirmation Popup

Success Callback (Popup message)

Did this answer your question?