I am trying to use PHPQRCODE to generate a QR code on my details page. If I give it a standard URL it works fine.
{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com","size":3,"size_field":null,"margin":2,"margin_field":null}
But when I try to pass along a variable
{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com/<?php echo urlencode(CurrentPage()->attachment->CurrentValue) ?>","size":3,"size_field":null,"margin":2,"margin_field":null}
it shows the exact code I have entered in the Custom View Tag with the variable correct but not the image
{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com/uploads/125250841-568652.pdf","size":3,"size_field":null,"margin":2,"margin_field":null}
The qrcode_field is correct but something in my code is preventing it from rendering the image. Any assistance here would be greatly appreciated.