Hello,
I am fairly new to creating analytical applications. I need a user interface which shows a question to the user "Do you need to upload a file?", and it should give an option of file browse which is then connected to the input file of the workflow only when it is answered "yes".
I am not sure how to perform this task. Which tool do I need to use ?
Thanks!
Solved! Go to Solution.
You can nestle the File Browse tool under a Check Box tool to achieve this .
Edit: Be sure to check "Collapse Group when Deselected".
@StephenR I tried doing that. Not sure how do I nest the Check Box tool with File browse. Attached is the workflow.
You can achieve this by using the 'interface designer' which you can see by doing to 'view' on the top toolbar and then selecting 'interface designer'. Upon this you can promote your filebrowse tool up into the same 'group' as the checkbox.
So moving from this...
to this...
by using the up arrow on the right side.
Also, a key point if you are going to use an optional input is that the checkbox for 'required' on the configuration of the action tool which is connected to the input should be unchecked.
I've attached the amended version of your workflow.
Ben
This is perfect. Thanks Ben