-3

I would like to implement an option to generate a QR Code in a webform (registration form for a face-to-face event), which appears right after it is sent, to be used in the registration confirmation when the person checks in at the said event.

When such form is completed and sent, the information goes directly to the registered person's e-mail address (in text or html form), and the QR Code could be generated and sent at the same time, together with the other information filled.

0
-1

One possible approach would be to use the Drupal user registration form, so that event registrants would be signing up for an account on your event website.

Your custom module could use the entity.form_builder service to load this form.

You can easily add custom fields to the user entity.

One of those fields could be a QR code. There are several contributed modules that can generate a QR code in a block or a field; this is one choice:

https://www.drupal.org/project/endroid_qr_code

The Drupal website user registration process already sends a welcome email which can be customized at admin/config/people/accounts so you may be able to include the QR code field by using a token such as [user:field_qr_code].

The tricky part will be validating the QR code, but if you can generate a code for an absolute link to the user profile, a Drupal user with appropriately-configured user role could log in to the site on their mobile device and scan the QR codes at the event to verify the user's identity and registration status.

Not the answer you're looking for? Browse other questions tagged or ask your own question.