kpcollier Posted May 11, 2023 Report Share Posted May 11, 2023 This probably isn't possible, but thought I'd ask anyways. In my application, I have several App Parameters that are saved files. I have these App Parameters embedded into anchor tags like so: <a id="obeRelCW" class="hideLinks" href="[@app:OBE_Rel_CW/]">Reliance CW Detail</a> <a id="ElcoTO" class="hideLinks" href="[@app:ElcoTO]" target="_blank">Elco Detail PDF</a> When one of these links are clicked, the file in the App Parameter is downloaded automatically. I am trying to make it so it opens in the browser instead of downloading the file each time. Something similar to the Download Options for PDFs on a datapage, where you can select either Download or Open in Browser. I've tried adding target="_blank", which successfully opens up another tab, but just for a split second. Then the file is downloaded. Any ideas? Quote Link to comment Share on other sites More sharing options...
PotatoMato Posted May 12, 2023 Report Share Posted May 12, 2023 Hi, @kpcollier. I suggest embedding the app parameter files on an HTML datapage using their article: https://howto.caspio.com/tech-tips-and-articles/tech-tip-embed-documents-in-datapages/, then use the datapage URL on your href with the target="_blank". Or use the Google document viewer to the href. Your link will be like this: <a href="https://docs.google.com/gview?url=[@app:File/]&embedded=true" target="_blank">Reliance CW Detail</a> -Potato kpcollier 1 Quote Link to comment Share on other sites More sharing options...
kpcollier Posted May 12, 2023 Author Report Share Posted May 12, 2023 @PotatoMato Thanks for the reply. Unfortunately, the files are saved in Caspio, and FileStor doesn't seem too safe, so that first option is out. The second option seems a bit promising, but the viewer is showing "No Preview Available". I'll keep messing with this and see if I can get it to work. PotatoMato 1 Quote Link to comment Share on other sites More sharing options...
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.