48
Views
1
Comments
[File Download Mobile] Multiple downloads issue
downloadmobile
Reactive icon
Forge asset by Miguel Palrão
Application Type
Reactive

There is a minor issue with this component, where if it is used in multiple places within a screen, the file will download multiple times to match the number of places where this widget has been used. The same issue is found where the component is used within a list.

My workaround involves placing the widget within a hidden link and then using the widget when needed by calling the link using JavaScript.  

2024-05-24 10-39-00
Miguel Palrão

Hi Manogar,

The component was build to only have 1 block per screen. What you need to do is have 2 variables: FileName and FileContent and each time you want to make a dowload, assing what you need to download to those variables. This will trigger the onParametersChange of the component and will download the correct file.

Hope it helps

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.