Can I show part of my form if a user uploads more than 1 picture?

  • canvashut
    Asked on September 7, 2015 at 11:50 AM

    We used Jotform to get customers images to us.  Sometimes customers upload multiple images to us but don't actually give us instructions of what to do with them.

     

    Is there any way I can use the image uploader and have it show or hide part of my form if they upload 1 or more pictures?  It would be nice to have a few questions or a response box pop up if they have more than 1 picture so that they can give us more information.

     

    At the moment we have the box ask if they have uploaded more than 1.  This looks clumsy.  It would be nice if the form only asked if it knew there were multiple images.

     

    Thanks in advance.

  • Ben
    Replied on September 7, 2015 at 1:05 PM

    I took a look at your form on your website and first thing that I have noticed is that there seem to be issues with conflicts.

    For that reason I would suggest using iframe embed method: How to get the jotform iFrame Code

    Now in regards to your question, unfortunately we can only check if the file upload was filled out or not.

    The only two possible ways of implementing something like this is to either:

    1. use multiple upload fields (for example one for a single file upload and then have an option to select if they wish to upload more fields.

    That way if both the first (single upload field) and the second (multiple uploads field) are filled out you know that there are several uploads and if only the first one is filled out, you know that there was only one.

    2. use the form's source code and hire a developer that would create a script for you that will do such checks for you.

  • canvashut
    Replied on September 8, 2015 at 5:05 AM

    Hi Ben,

     

    Thanks for your suggestions.  I did already consider using multiple upload fields but was hoping for a solution that could just use one, like a condition that could be set to hide/show another field if there was more than 1 file uploaded etc.  No problem though, the form works great as is but would be nice to tidy it up where possible.

     

    Could you elaborate on the conflict you mention?  We did used to use iframes for the form but found they wouldn't always work with some devices.  I believe we had issues with the form loading on Iphones and Ipads using Safari.  We've found embedding the form using <script> to be the most reliable for just about everything we've tested it on.

     

    Would be good to hear your thoughts on the matter.

     

    Cheers! 

  • Ashwin JotForm Support
    Replied on September 8, 2015 at 6:15 AM

    Hello canvashut,

    As explained by my colleague, unfortunately we can only find out if the user uploaded any file but it is not possible to get the count of uploaded file in form. The only possibility is to add multiple file upload filed and add condition to show hide form fields which is explained by my colleague in his previous response.

    Could you elaborate on the conflict you mention?

    Some time if you use your form's script embed code, there could be some code conflict between form code and other script available in your web page. This code conflict can sometime cause the validations or conditions to not trigger.

    To solve this code conflict issue, you should embed your form using its iFrame embed code. The following guide should help you on how to grab your form's iFrame embed code:  http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code 

    Thank you!