Static data is the data that does not change over the period of time. Such data is used to assign as default values in fields in your application. In Studio, you can use static data directly in the formula box of any control. There various ways in which you can use static data based on the data type i.e. Numeric, Text, and List type data.
Binding Numeric Data
Numeric static data can be directly used in formula box of any control. For example, if you want to assign a number say 9 to a number type control, then simply type 9 in the formula box, click Save and Validate button and preview the app (as shown in the below image)
Binding Text or Characters
Characters or String data need to be within double quotes (""), e.g. "DronaHQ Studio". If your data contains an apostrophe(') then you need to put the data within double quotes, e.g. if you want to use John's, then use it as "John's".
Binding List of Data
Data that is generally mapped to a list type controls viz. radio controls, checkbox, dropdown, multiselect, etc. are written in form of a list or group of data separated by comma and put within square brackets i.e. [ ]. For example, if you want to assign static values for radio control say Gender having values - Male, Female, then you need to use the following format and write it in the formula box of radio control -
Once you have filled the formula box with the desired static values, click on Save and Validate button and preview the app to check the corresponding radio control (as shown in the following image)
In the above example, both the values of radio control were not selected by default. To have a value selected by default when the app is displayed to the user, you need to assign that value in control's formula modal under the Default Selected Value box (as shown in the below image). Once you mentioned the default selected value, click on Save and Validate button and check in the preview (as shown the image following the next image)
The following image shows how option "Male" is displayed as the default selected value of radio button.
Note, the Default Selected Value box in the formula modal is available for list type controls viz. Multiselect, Radio, Checkbox, toggle_text, Select bar, Multiselect Bar, Keyword Box, Dropdown, File Upload.