-
HHarding
Is it possible to configure this widget so it can either take photo or upload one previously taken on the device?
-
Kris JotForm SupportHi Harding,
Thanks for reaching out to Jotform Support. Currently, the Take Photo widget's main function is to capture images using the device's camera. To allow uploading an image, you'll need to use the File Upload element. Here's an idea, you can add a Single Choice element asking the user if they want to take a photo or upload an image.
If they choose to take a photo, the Take Photo widget will show. But if it's upload image, the File Upload element will show. This is possible through the help of the Show/Hide Field condition. Doing this is easy, I've created a demo you can look at below:
Adding form elements and widgets:
- In Form Builder, click on the Add Element on the left side.
- Under the Form Elements, on the Basic tab, scroll down and add the Single Choice element and the File Upload element
- Then go to the Widgets tab and search for the Take Photo widget. Then drag and drop it to whichever part of the form page you prefer.
Labeling form element and adding conditions:
- In Form Builder, select the Single Choice element.
- Label the Single Choice element and add the options.
- In Form Builder, on the orange navigation bar on top, go to the Settings tab.
- Now, select Conditions from the left menu. Select the condition if you don't have an existing condition. But if there is, click on the Add condition button.
- Choose the Show/Hide Field condition and create the conditions shown in the screenshots below;
- Finally, click on the Save button.
Here's a screencast of the demo form:
Let us know if you have any other questions.