-
MnagarajAsked on May 9, 2025 at 4:51 AM
I have developed a form titled "Data Collection Form" specifically designed for passport information. This form captures essential details such as the passport ID, expiry date, and both front and back images of the passport. Additionally, I have integrated this form with an agent known as the "Data Collection Bot Passport."
Currently, I have uploaded the front image of the passport. I am seeking a method to validate this image in parallel. If the image is deemed invalid, I would like the system to prompt the user to upload a valid image.
In the event that parallel validation is not feasible, I propose an alternative approach where, upon the user's submission of the entire form, the data is retrieved from the database for validation. If any of the images are found to be invalid, I would like to know if we can request the user to edit their submission and provide a valid image. This validation process should continue until the user uploads a valid image.
I am interested in understanding which of these two workflows is achievable using JotForm. If JotForm does not support the required validation, I am open to utilizing an external API to facilitate this process. It is essential that at least one of these workflows is operational. Is this possible?
-
Jeric JotForm SupportReplied on May 9, 2025 at 4:59 AM
Hi Nagaraj,
Thanks for reaching out to Jotform Support. I understand what you'd like to do, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.
Thanks for your patience, we appreciate it.
-
MnagarajReplied on May 9, 2025 at 5:02 AM
There is no issue; I will patiently await your response.
-
Jeric JotForm SupportReplied on May 10, 2025 at 2:48 AM
Hi Nagaraj,
There's no option to automatically validate the uploaded photo as the user fills out the form. So you need to validate it manually. In this case, I recommend creating a Workflow for your validation process. Let me show you how to create the Workflow:
- In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
- Click on Workflow on the left side of the screen.
- Now, click on Create Workflow.
- In Workflow Builder, start by adding an Approval element by clicking on Add Element + on the left side.
- Now, add a Task element and connect it with the Approval element with a Deny outcome.
- Next, edit the Task element by clicking on the element and the gear icon (Settings) on the right side.
- On the right panel, for the assignee, select the Email field.
- Next, edit the notification email by clicking on Edit under Notification Email.
- Now, add the Edit Link, so the user can click on it to edit the form and upload a valid photo.
- Now, click on Save .
- Next, add an Email element and assign your email as the recipient.
- Finally, add an End Element, connect it to the Approval Element with the Approve outcome. This action will be selected if you think the photo uploaded is valid and no further action is needed.
By default, the setting to restart the workflow when the form is edited is enabled. So it will just loop until you think the photos are valid, and you select the Approve outcome. We also have this guide on how to build a workflow.
Give it a try and let us know how it goes.