Submit your form

The last step in working with a Form control is to submit the edits. To do this we use the SubmitForm function. This function is often placed on a Button control labeled Save or Submit. The formula for OnSelect is SubmitForm(YourFormName).

This function takes all of the data that is entered into the controls on your data cards and save it to the data source for the Form control. Each data card on your Form control has an Update property specifying the data, in formula form that will be written to the data source when SubmitForm is called. If you have unlocked your card, you can modify that formula. This is often unnecessary and only done in special circumstances.

After you submit your form

The Form control is easy to use because with invocation of the SubmitForm function your data is whisked away and your data source is updated. The Form control has three properties that process after the data is submitted based on the outcome of the submission. These properties are OnSuccessOnFailure, and OnReset. Additionally, the LastSubmit property provides you with a record of what data was submitted from the form.

For each of these properties, you can enter a formula. For example, if you want the user to go to a different screen after their data is submitted successfully, then in OnSuccess you would use the function Navigate(SuccessScreen, ScreenTransition.Cover) to send them to the screen named SuccessScreen.

ERP for Food Manufacturing