Forum Discussion
MCFNeil
9 years agoQrew Captain
Amber,
It can be a png or jpg image.
And rather than creating an image preview field, then referencing that in your button, you can reference the direct URL, which might speed things up a little.
Just modify the field properties of your file attachment field to be accessible without logging in, and now that file attachment is a permanent link for anybody to see/use
Then you copy the URL into your 'a'frame. Add your own action URL to the href, and size it as you'd like.
It can be a png or jpg image.
And rather than creating an image preview field, then referencing that in your button, you can reference the direct URL, which might speed things up a little.
Just modify the field properties of your file attachment field to be accessible without logging in, and now that file attachment is a permanent link for anybody to see/use
Then you copy the URL into your 'a'frame. Add your own action URL to the href, and size it as you'd like.
"<a href='#' title=\"Click Me\" >
<img src=\"https://www.quickbase.com/up/bdvnw2gfi/g/rd/eh/va/busybee2.jpg\"; height=\"32\"></a>"
- AmberPollard9 years agoQrew Assistant CaptainI'm not using the image as a button, so I don't think I need to worry about an "a frame" or "action URL", correct?
Is there a formula I can use for a field in another app that just references the Record ID -- or is this a less "speedy" solution than using the filename?
Thanks! - AmberPollard9 years agoQrew Assistant CaptainOh, wait -- I think I see why using the filename is faster. Okay.
Right now I tried just substitituion the app ID and the filename in the above but I'm getting a broken image link.
(If ([Form]="desktop", "<img src=\"https://www.quickbase.com/up/bmkiqjckt/g/rd/eh/va/1488585069_computer.png\"; width=\"15\">", "")),
Can you tell why? - MCFNeil9 years agoQrew CaptainIf you want to just display that image, and always have it be static, using the URL is best.
If you want the image to change and be dynamic based on some other field, you can make a conditional statement to display different images.
But to be able to use the image in a completely different application that doesn't have a relationship, you will want to stick to the URL from the file attachment - MCFNeil9 years agoQrew CaptainIts showing the file doesn't exist. Try simplifying the filename prior to upload.
I've notices that QB struggles with long, or special characters in the file names. - AmberPollard9 years agoQrew Assistant CaptainI changed to a simple filename:
(If ([Form]="desktop", "<img src=\"https://www.quickbase.com/up/bmkiqjckt/g/rd/eh/va/pc1.png\"; width=\"15\">"),
But I'm getting this error: Your request to download the file pc1.png from the application QB Admininstrator: Icons failed because the specified field was not a File Attachment field. - MCFNeil9 years agoQrew CaptainI think we might be copying the wrong URL.
When you upload the file. Then click on the attachment, quickbase will open a specific URL for that image.
eg.
https://cirrusops.quickbase.com/up/bmgd28ku6/g/rb/eg/va/mutton_bustin_bib.jpg
or
https://cirrusops.quickbase.com/up/bmgd28ku6/g/rc/eg/va/Calf_Riding_image.jpg
They will all have a variation of the 'g/rc/eg/va' etc.
Don't copy any codes from this form, but only click on your attachment, and copy that unique URL for that unique image file.
This might be the issue... - AmberPollard9 years agoQrew Assistant CaptainWow, finally! So sorry -- it seems crazy obvious now. Thank you!