An update on what I have tried:
I tried to do the same as in https://docs.communityhealthtoolkit.org/apps/guides/forms/multimedia/ for csv file, replacing form=“image” with form=“csv” and “file-csv” both didnt work… I did not have an error but I tried to show it as if I was to show an image which did not show anything. When I tried to access one cell of the csv file with pulldata (“pulldata(‘FishCalc’,‘lengthMultiplier’,‘code’,‘RBS’)”, where lengthMultiplier is the column which has the cell I want, the code is the column where RBS is, and specifies an unique row, from which I want the value) I get the formlogicerror instance “FishCalc” does not exist in model. I tried different things as e.g. count(instance(‘FishCalc’)/root/item[lengthMultiplier>1]) (would not give me the same value as above but the value I get does not really matter, I just want to make it work and retrieve something from the csv) which leads to another formlogicerror: “instance “FishCalc” does not exist in model”
Maybe I need to access the file differently?
I added to the xml file (dummy file). And supposedly I should be able to access it like so: “count(instance(‘FishCalc’)/root/item[lengthMultiplier>1])” with calculate. But here I get a load error saying that the file is empty and a formlogic error as the expression could not be evaluated. Is there maybe something to the path of how I can access it in the XML? Like the csv handler should be jr://file-csv/Path/tofile.csv maybe my path is wrong? should it rather be something like jr://file-csv/_attachments/FishCalc.csv because of having it attached to my form in the database?