formUserInputThe style formUserInput allows to create html forms where user input is automatically stored to the database.
There are two ways of how user data is stored to the database automatically. This can be controlled with the field is_log:
is_log = false data is continuously updated. In this case an input field always shows the current, user-specific content and whenever this content is changed by the user, the old values are overwritten in the database. This way of storing data is intended
for entries where data is constantly edited and revised.is_log = true data is stored incrementally. In this case each time a set of data is submitted to the server, a timestamp is attached to the data. For each submission a new entry is created in the database which allows to store multiple entries, made
at different points in time. This way of storing the data is intended for log-like forms where a user is asked to enter
a specific set of data every day.The field name is essential as the name of a form can later be used to get the stored data associated to the from the database.
The field label defines the text on the submit button.
The field alert_success defines the text that is displayed upon successful storage of the data.
There are two ways of how user data is submitted to the server. This can be controlled with the field ajax:
ajax = false the data is submitted to the server with a full page reload. ajax = true the data is submitted with AJAX request and once the data is saved only some components are refreshed and the page is not fully reloaded. In this way the state of opened cards, tabs, etc can be kept.Unknown Style styleSignature
formUserInput with name blog and the field is_log unchecked This form will constantly update existing values in the database without creating a new entry.
formUserInput with name log and the field is_log checked This form will create a new entry in the database for each data set that is submitted.