I have a repeater that shows if students have submitted an assignments and allows teachers to download, grade and return these assignments.
In my repeater I've added buttons to allow these assignments to be downloaded by the teachers but I can't for the life of me figure out how to get these documents to download.
I've tried simply setting the value of the button to match the relevant field in the database which didn't work.
I've tried creating an onClick action to navigate to the document but the value stored in the database isn't a usable URL according to the errors and console logs I get.
I even tried using .split to break-up the database value so I can get just the portion I want but event that doesn't work as I get an error stating that .split isn't a function that can be used in the repeater.
I'd be happy to post some code if it will help, just not sure which failed code to post.
Thanks in advance.