Forum Discussion
XavierFan
10 years agoQrew Cadet
Did you use the Example app, or did you implement it on your own app?
In the formula for the link (which should be in the same table as where the File Attachment is located):
If ([File Attachment] = "", "",
"<a href='" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e7/v0' target='_blank' >" & [File Attachment] & "</a>")
Note the "e7" portion of the formula. The "7" refers to the Field ID of the File Attachment field. Modify accordingly for your own app.
I suspect that the field with fid = 7 - is not the File Attachment field in your app. Replace the "e7" with "e[fid]" - where [fid] is the fid for your File Attachment field.
In the formula for the link (which should be in the same table as where the File Attachment is located):
If ([File Attachment] = "", "",
"<a href='" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e7/v0' target='_blank' >" & [File Attachment] & "</a>")
Note the "e7" portion of the formula. The "7" refers to the Field ID of the File Attachment field. Modify accordingly for your own app.
I suspect that the field with fid = 7 - is not the File Attachment field in your app. Replace the "e7" with "e[fid]" - where [fid] is the fid for your File Attachment field.