When you connect your form to Ratufa, you are copy-pasting the link to Ratufa "Rivet" script to your HTML form page.
When you load the form page in the browser, the Rivet script checks with the Ratufa server whether the formID is already configured.
If the form is loading for the first time, the rivet script does the following
In addition to the input validations in the HTML form, you can add additional validations in your Ratufa setting pages for the form.
When someone loads the form next time in their browser, the Rivet script gets the updated validations from the Ratufa server. When the form is submitted, the script validates the input values and if valid, sends the form submission to the Ratufa server.
The server validates the form submission data against the validations configured for this form. Then it saves the form submission in a database and proceeds to the next form processing step (sending email notifications etc). When the validations are successful and could save the form submission, the Ratufa server sends a "success" response back to the loader script. The loader script then shows a "Thank You" message to the user. You can configure the message in Ratufa settings.
You can have file uploads in your HTML form. The Rivet script identifies the File uploads in your form. When you submit the form, the script validates and uploads the files first. The form submission data follows.
You can configure Ratufa to collect payment on form submission. If the form is configured so, Ratufa server first calculates the amount to be paid and sends this back to the Rivet script. The Rivet script displays a button inviting the user to complete the payment process. The payment is done following the steps on the payment processor's website (Stripe). Once the payment steps are completed, the Rivet script displays "Thank you" page to the user. The payment processor confirms the status of the payment processing by way of a webhook to the Ratufa server.