The Button element is used to initiate execution of a process defined as a formula. The Button element properties screen is displayed in the image below.
COLOR – Buttons may be displayed on the form view with a Blue, Red or Grey background. Buttons displayed in Red or Blue will feature white characters while Grey buttons will feature black characters as displayed in the image below.
FORMULA – Clicking in the Formula field of the properties window will open up the Ninox formula editor. It is here that you define the code block to be executed every time the button with which it is associated is clicked.
TOOLTIP – Often referred to as “hover help”, this is content that will appear in a small balloon at the point where the cursor is when that cursor is left to hover over the field for a few seconds. Tooltips are used to assist the user in understanding what is expected to be entered into the field.
DISPLAY FIELD ONLY IF – This field accesses the Ninox formula editor where the user may define the condition under which this field, and its contents and name, remain visible in the form view of records in this table. A field will only remain visible if the DISPLAY FIELD ONLY IF is left blank or if the formula that appears in the field distills down to a “True” state. For example, to ensure that a field remain invisible at all times and in all situations, a user may enter the formula 1=2 or null. To ensure that a field remains visible at all times, leave this field blank. To enable the field to appear or disappear based on the state of another field (or fields) in the table, use a formula that will ultimately evaluate to either true of false. A true evaluation will result in the field appearing while a false evaluation will result in the field remaining hidden.
[DELETE FIELD] – The red button that appears in the bottom, left-hand corner of the screen, if clicked, will give you the option to delete this field from the table. If you confirm the wish to delete the field, the field, and all content in this field in all records of the table will be eliminated. The Delete Field operation can not be undone, so make sure you have made a backup or archive of your Ninox database application prior to deleting any fields.