I have two upload locations. The first one is the Caspio upload to the Caspio file section. My users are uploading very large scanned files (PDFs), and I had to create a separate upload page outside of Caspio and outside storage. However, I have a tabular data page that shows the upload link. I need to create a CASE statement that will determine if the old document upload ( [@field:ISDocumentUpload])was used; if not, then the new URL ([@field:ISFileURL]). This is what I have so far, but I am having problems getting the URL of the Capsio upload location.
CASE
WHEN [@field:ISDocumentUpload] IS NOT NULL
THEN '<a href="@FileUploadField">Download File</a>'
ELSE '[@field:ISFileURL]'
END
So far the <a href="@FileUploadField">Download File</a> only shows a link that changes when you hover, but there is no destination URL inserted.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Hiperf
Thank you in advance for your help.
I have two upload locations. The first one is the Caspio upload to the Caspio file section. My users are uploading very large scanned files (PDFs), and I had to create a separate upload page outside of Caspio and outside storage. However, I have a tabular data page that shows the upload link. I need to create a CASE statement that will determine if the old document upload ( [@field:ISDocumentUpload])was used; if not, then the new URL ([@field:ISFileURL]). This is what I have so far, but I am having problems getting the URL of the Capsio upload location.
CASE
WHEN [@field:ISDocumentUpload] IS NOT NULL
THEN '<a href="@FileUploadField">Download File</a>'
ELSE '[@field:ISFileURL]'
END
So far the <a href="@FileUploadField">Download File</a> only shows a link that changes when you hover, but there is no destination URL inserted.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.