Forum Discussion
var text URL = URLRoot() & "db/" & [_DBID_ASSETS] & "?a=dr&key=" & URLEncode([Cart ID#]);
"<img src='http://chart.googleapis.com/chart?cht=qr&chs=240x240&chl="
& URLEncode($URL)& "'>"
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
Hi Mark,
I am trying to have a qr code generated and scannable. Right now when I put the QR code field in the main form it is showing as broken. Here is my formula rich text:
var text URL = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [BOL ID#];
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=240x240&chl="
& URLEncode($URL)
& "\"\"/>"
Also here is a snippet of what the field looks like in a form, shouldn't the qr code be visible here?
Thanks so much,
Bailey Desormeaux
- MikeTamoush2 years agoQrew Elite
Is BOL ID# your key field? If you switched the key field from [Record iD#], you will need to use the syntax Mark posted ("...&key=" & URLEncode([BOL ID#]))
- MarkShnier__You2 years ago
Qrew Legend
Here is syntax that also works for me. I found that the Google AI was not reliable.
var text URL = URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]);
"<img src=https://quickchart.io/chart?cht=qr&chs=150x150&chl=" & $URL & "</a>"