Create QR Codes with editable URLs + download + save to database

  • needtheanswers

    4 months ago

    Hi everyone, what would be the best approach to do this in Toddle? I´m trying to build a QR code generator. The user enters a URL (https//www.hello.com) and the QR Code get created. The created qr code should then be uploaded to my database (xano) and the user should be able to download the image of the QR code. Also the URL should be editable so the user can change the URL to https//www.hi.com or whatever without changing the QR code. A user can create only 1 QR code but the URL can be edited any time (imagine that the QR code already got printed and you just need to change the URL because you found a typo but you don´t want a new QR code because then you would have to reprint everything..). I´ve tried asking ChatGPT and Claude, watched a few youtube videos but I couldn´t get this to work. Also using a third party solution is not an option. I would appreciate any help 🙏
  • Lucas G

    4 months ago

    You can do it via custom actions but I'd probably look into just using a QR code library
  • There are a couple that are pure JS
  • It would be much easier to use those
  • As to the URL change, I would imagine that is done via redirects
  • As the QR code doesn't actually change
  • And the URL doesn't stop working
  • So for a URL change, you'd have to implement a redirect to the new URL which is not a QR code function but a DNS logic one
  • needtheanswers

    4 months ago

    @Lucas G Thanks for pointing me in the right direction. How exactly would I go about the DNS logic?
  • StuartM

    4 months ago

    You could do this - both generate the qr and handle redirecting - with Comnoco.
  • needtheanswers

    4 months ago

    How would I do this? And then I would have to use Comnoco forever right? The thing is that I don´t want to add another tool to my stack but I´ll take a look, thank you!
  • or is there a way to export everything?
  • /attachments/1284895471864647802/1284925674385051825/image.png

    StuartM

    4 months ago

    If you use it in your stack - yes it would be part of the solution!
    No, just like Toddle, it doesn't make sense to code export from Comnoco, comnoco IS the visual programming language and platform to run on.

    So it's very easy to do, you just need to create two API functions like in the screen shots (read them from top to bottom from the inputs, to the logic to the outputs).
    1. Creates a QR with your client/customer unique ID then stores the lookup of the ID -> URL in a database of your choice
    2. Responds to requests to the URL above, looks up the intended URL target and redirects the browser to it.
    image.png
    image.png
  • needtheanswers

    4 months ago

    @StuartM Thank you so much, this is really helpful! I just created an account to test it out. 😁 Is Comnoco GDPR compliant?
  • StuartM

    4 months ago

    Yes, we don't store your data and are UK hosted. If you are an enterprise customer we can even host it privately.
  • @NoCode ProCode - thought you might like this?
  • needtheanswers

    4 months ago

    Unfortunately my country is quite strict when it comes to GDPR. Does it say anything thing about the compliance on the website? I could only find a blog post. And since the data is processed by Comnoco GDPR regulations apply (regardless of whether the data is stored or not). Also I would need a data processing agreement, is it possible to get one? 😬
  • StuartM

    4 months ago

    Yes, sure, no problem, we provide them to customers on paid plans on request. You'll also find a little on GDPR here https://comnoco.com/privacy
  • needtheanswers

    4 months ago

    aaahh, thanks a lot Stuart 🙏
    👍1
  • Tod

    4 months ago

    Great energy @needtheanswers! Your continuous contribution to the toddle Community just made you advance to Community Level 7!
  • needtheanswers

    6 days ago

    As for the redirect, is it "safe"/recommended to do that in toddle? @Lucas G
  • Lucas G

    6 days ago

    Depends what you mean by safe
  • Lucas G

    6 days ago

    Redirects are usually a server thing but you could do it with toddle’s redirect rules
  • Since they run server-side
  • needtheanswers

    6 days ago

    By safe I mean the possibility of the user being able to manipulate the logic. But I´ll try my luck toddles redirect rules. Thank you!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.