I have a requirement to add a custom QR code on event Registration instead of Dynamics 365 generated QR code, Is it possible with event portal?
I have a requirement to add a custom QR code on event Registration instead of Dynamics 365 generated QR code, Is it possible with event portal?
Thanks Clofly
Hi Fariha,
You can do it by importing a web resource into Event Registration form, use an external api service or a QR code javascript library to create QR code, and hide the default QR Code section.
1. External service:
This website will create a direct QR code image src for us to present a QR code.
The api URL is: https://api.qrserver.com/v1/create-qr-code/ (Data will be processed in https, so our data is safe)
Demo:
QR Code 1
The QR code will display such information:
Name: Alex Mao RegistrationID: ER GQTALSZR34BQWHLDX2XR6W8TMH
2. qrcodejs
If you worry about public API service security, then you can import a free js library: qrcode.js to create QR code.
My demo refer the library from CDN.
QR Code 2
The QR code will display same information.
There are two libraries you can use:
https://www.jsdelivr.com/package/npm/davidshimjs-qrcodejs(basic version)
https://www.jsdelivr.com/package/npm/easyqrcodejs(extended version based on above library, and its my demo version)
You can open their GitHub page for more details about usage.
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,554 Super User 2024 Season 2
Martin Dráb 228,588 Most Valuable Professional
nmaenpaa 101,148