What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by canvashut on September 07, 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.

    Page URL:
    http://www.canvashut.com/pages/Upload.php

    uploads picture part conditions show / hide
  • Profile Image

    Answered by Ben on September 07, 2015 at 01: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.

  • Profile Image

    Answered by canvashut on September 08, 2015 at 05: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! 

  • Profile Image
    JotForm Support

    Answered by ashwin_d on September 08, 2015 at 06: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!