Open mr-easy opened 2 weeks ago
Hi @mr-easy,
Looks like we don't support creating file upload widgets in the loop, sorry. Here is docs for File
widget https://runmercury.com/docs/input-widgets/file/ The File
widget is missing url_key
argument in constructor. Other widgets with url_key
can be created in the loop https://runmercury.com/examples/create-widgets-in-loop/ I believe this can be fixed.
How many widgets would you like to create in the loop? What is your use case?
I am creating a dashboard for stock market trade analysis. Now I want to give user the option to upload multiple files along with a multiplier for each file. So first I ask how many files needs to be uploaded, and then that many Fileupload widgets are created. Can range from 1 to 10.
I want to create multiple File upload widget, but it's creating just one widget when created inside a loop.
This gives only one file widget 'File upload 4'
While this works:
But I want to do it in a loop.