Skip to main content
Question

URL Button to Preview File

  • October 31, 2019
  • 0 replies
  • 371 views

Forum|alt.badge.img+14
I have a file attachment and I'm looking to make a button for the user to preview the file attachment. I found an old thread about this suggesting the following, however when I click that I get a url cannot be found web page. Also, it opens in the same tab as quickbase, and I am hoping to open in a new tab. Can anyone help? Thanks!

if ([Document]>"", "<a href=\"" &URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#]& "/e999\"target=_blank\">" & [Document]& "</a>","")



change the 999 in e999 to be the field id of the Document field



------------------------------
Mike Tamoush
------------------------------

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • October 31, 2019
try this

IF(ToText([Document]) <>"",
"<a target='_blank' href=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/
e999/v0"  & ">" & Totext([Document]) & "</a>")

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------

AdamKeever1
Forum|alt.badge.img+2
  • Quickbase Alumni
  • October 31, 2019
Reach out to Ryan Stanford, he was able to do it. Check out the last entry of this thread:
video in pop up window

------------------------------
Adam Keever
------------------------------