I am creating a list of downloadable files for a course app that I'm developing. However, I do not know how to expose {database_url} to javascript (Or whether I even need to do that).
I added a list to my page; added a hyperlink field to the list; and mapped the data service to the list and associated hyperlink.
On the "Data" tab of my page I linked the "fileName" to the link "URL" and the "originalFileName" to the link "Text".
This worked as hoped from a display standpoint, but when I click the link nothing downloads. I'm expecting to be able to download any file in the hyperlink list.
I also tried adding this javascript to modify the "fileName". (value = fileName)
value = "{database_url}/collections/aquamarine/" + value;
return value;
This works in modifying the 'href' for the link, but still no download.
Also, I can see the list in the browser test window, but when I view the page on my mobile device it is blank.