How to check if file is selected in FilePicker
I have made a wf5 which give back undefined for $form.state.FilepIcker.value is undefined. according to Mobile Viewer the value not undefined and the wf craches because it thinks a file is added. The same is with sum statistics. In mobile the value is undefined in sandbox I got a real number. How can these differences be explained!
-
Hi Erik,
If your workflow is checking for the existence of files, you could use =$form1.state.filePicker1.value.files.length instead, which will return 0 when no files have been added.
The Sandbox uses our Typescript workflow implementation while the Mobile Viewer uses our .NET implementation, so there are differences between the two, but I will file an issue for this as they should handle this case equivalently.
Thanks, Stefan
0 -
Thanks a lot
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare