Forms
Forms can be attached to cards from the portal to allow end-users to enter information and enter competitions.
Pre-filling from URL query parameters
Form fields on cards can be pre-populated with information based on the query string parameters in a given URL. A given form field will be populated if the form field's unique key matches the key specified in the URL's query parameters.
Format:
https://{url}/?komo_f:{unique key of form field}={pre-populated value}
Example:
URL with pre-filled value: https://myhub.komo.site/?komo_f:first_name=John
URL with multiple pre-filled values: https://myhub.komo.site/?komo_f:first_name=John&komo_f:last_name=Doe
The above URL will store the key first_name
and last_name
with their associated values in the browsers session storage and when a form is displayed, forms containing fields with the unique key first_name
will be prepopulated with the value of "John" and forms containing a field with the unique key last_name
will be pre-populated with the value of "Doe".
The associated keys and values used to pre-populate a form will be cleared when the page session ends.