Document Download - Run-time decision?

Hi there,

In studio there is a switch for Document->Download Only, I need to make this dynamic based on data within the file widget. Is this possible as I can’t find anything in javadoc.

For example what I want to do is:

if(fileLabel.equals(“ABC”){
widgetDownloadFlag = true;
}
else{
widgetDownloadFlag = false;
}

Many thanks in advance,

regards
Seán

I’m sorry but I think this is not possible with the current form solution.