How can I loop the form back to the original set of questions?

  • sclark1982
    Asked on November 15, 2016 at 5:37 AM

    Hi,

    Please can you help me. We are a bespoke manufacturer of sports garments and we are using Jotform to create an order form for our customers.

     

    We are having trouble when we get to the bottom part of our form. Basically, the customer will select the product they require at the beginning of the form and dependent on what garment they choose (Shirt, Shorts, Socks) will determine the next set of questions they are asked to complete. These constraints are all working fine, but our issue is when the customer gets to the bottom of the page they may want to add another product, we therefore need them to be able to click (for example) 'ADD SHIRT', once this is clicked we need all the information they have already completed to be saved and then the user is shown the 'PRODUCT TYPE' section to select and complete accordingly, the fields that follow will be exactly the same as they have already seen (so effectively a duplication of the original form). When the user gets to the bottom again, they may then want to add shorts for example, so the same thing applies, we need them to be taken back to the 'PRODUCT TYPE' section for each new product they would like to add, and they complete accordingly. We need the form to remember each new product they add. Once they have filled out all the products they require, they then choose 'SUBMIT ORDER' and we will be sent the order with the details on ALL products on 1 form. Is this possible?

     

    At the moment we have tested adding a constraint to the final buttons 'ADD SHIRT' 'ADD SHORT' 'ADD SOCKS' we added constraints & duplicated the original fields, but when we previewed the form it had not worked & it caused the form to keep crashing. We are guessing due to the large number of fields and constraints we have set up. Due to being a bespoke manufacturer, there are obviously lots of variants the customer can choose.

     

    We really hope you are able to help us. There are a few other smaller issues that I would like further help with if possible, but this is the biggest issue for us at the moment. Please let me know if I have not explained clearly.

     

    We look forward to hearing from you soon & would like to thank you in advance for your help.

     

    I have submitted the link to our form privately.

     

    Many Thanks

    Suzanne

  • Ashwin JotForm Support
    Replied on November 15, 2016 at 6:17 AM

    Hello Suzanne,

    I did check your form and found that though you have added "Line radio Button" widget for "Add shirt", "Add shorts" and "Add Socks" but there is no condition to show the new sets of form fields. I also do not see that you have duplicated any form fields.

    I would suggest you to please let us know which are the form fields for each products which you would like to displayed again on click on add product buttons. We will help you with the duplicating the form fields along with the required conditions to show those form fields based if the add button is clicked.

    We will wait for your response.

    Thank you!

  • sclark1982
    Replied on November 15, 2016 at 7:44 AM
    Hi,
    Thank you so much for your quick response and looking at our form. We did try to duplicate the required fields but it kept crashing the form, so your help would be greatly appreciated. If I could tell you the form fields required for 'ADD SHIRT first & then we can test this one & see if it works before doing the others.
    If you feel we have used the incorrect widget for these buttons please let me know. We were just testing to see.
    When 'ADD SHIRT' is clicked, we would like the user to be able to select from all of the fields shown within the RUGBY form collapse (up to the infinite list widget at the very bottom of the form). We would like the form to display in exactly the same way as it did with all the same constraints it had when they first filled out the form. Please let me know if you need me to list every field (there are quite a few within the Rugby Form Collapse).
    If you feel there is a better way for us to achieve what we are after, please let us know. We are concerned about the form crashing due to how many fields (containing restraints) we are going to need. Once 'ADD SHIRTS' has been done we would then need to copy exactly the same fields for 'ADD SHORT and then 'ADD SOCKS'.
    In addition to this we then have 7 more sports to add within a new form collapse, with lots more constraints etc. Can you see this being a problem?
    Thank you so much for your help with this, we really appreciate it.
    Many Thanks
    Suzanne

    Sent from my iPhone
    ...
  • sclark1982
    Replied on November 15, 2016 at 10:44 AM
    Hi,
    I'm very sorry to chase, I just wanted to check you received my last email?
    I have tried the suggestions your colleague sent to me but unfortunately I can't seem to get them to work for what we need.
    I look forward to hearing from you soon.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • Ashwin JotForm Support
    Replied on November 15, 2016 at 11:54 AM

    Hello Suzanne,

    Yes we received your last message. I will clone your form and add desired functionality. 

    It would take some time because of the complication but I will update you as soon as I am able to complete it.

    Thank you!

  • sclark1982
    Replied on November 15, 2016 at 1:44 PM
    Hi,
    Thank you so much for your reply. I made a start at cloning the form earlier today, so you will see my version saved. I found that it did not duplicate the conditions with the fields.
    I have just realised that when the user clicks on 'ADD SHIRT we only need to duplicate the applicable shirt fields (not the shorts fields). Therefore, I will write you a follow up email tonight to confirm which fields need to be within 'ADD SHIRT' & which fields in 'ADD SHORT'. Sorry I did not realise this earlier when emailing you, I only realised when I attempted the clone version myself &was trying to simplify it.
    I hope this is ok & thank you again so much for your help with this.
    I will be in contact again shortly with the confirmed list.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • sclark1982
    Replied on November 16, 2016 at 6:44 AM
    Hi,
    I have completed the list of fields that are required to be cloned. I think it would be easier to list what is required when you click on the 'ADD SHORTS' button because this is a shorter list.
    ADD SHORTS button will include the following fields with all current constraints;
    Gender
    Product
    Construction
    Design shorts c&s
    Design shorts sub
    Fit/styling shorts
    Fabric shorts
    Fabric shorts (sub)
    Create your own design information
    Garment short colour - cotton drill
    Garment short colour-ikoma 220gm
    Garment short colour-polyester drill
    Garment short colour-sublimation
    State colour ref below (Cmyk, Pantone, pms)
    Page break
    Decoration-manufacturer branding shorts
    ADD club or sponsor logo?
    Decoration - customer/sponsor branding short
    Upload all files here
    Quantity information & personalisation
    Decoration shorts numbers
    Sizing & numbers information (shorts) children's
    Sizing &a numbers information (female shorts) children's
    Sizing & numbers information (shorts) adults
    Sizing & numbers information (female shorts) adults
    Children's (shorts) total
    Children's (female shorts) total
    Adults (shorts) total
    Adults (female shorts) total
    Total shorts garment qty
    Total shorts (female) garment qty
    Add shirt button
    Add shirt button
    ADD socks button
    Complete & send
    Clear form
    Print form
    That is everything for shorts. We will want to add the image widget (the same as the shirt image widget) but we are yet to complete this section. Hopefully this will be ok to be done after?
    For the ADD SHIRTS fields, these will be all fields except the ones listed above (hope that makes sense).
    The information for socks we are yet to load, can this be done after duplicating the above fields?
    When we test the cloned form, if any parts are missing can we add to it or will it cause the conditions to all mess up again?
    Thank you so much once again for doing this for us, we really appreciate it. Please let me know if you need anything else from me.
    We will keep off the form today to allow you to go on.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • Kiran Support Team Lead
    Replied on November 16, 2016 at 8:55 AM

    Our colleague Ashwin is not online at the moment. However, he has received your message. Once he has any update in this regard, you'll be posted here.

    Thank you! 

  • sclark1982
    Replied on November 16, 2016 at 12:44 PM
    Thank you very much for your update, it is greatly appreciated.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • Ashwin JotForm Support
    Replied on November 17, 2016 at 3:41 AM

    Hello Suzanne,

    Please take a look at the following cloned form where I have duplicated the fields:  https://form.jotform.com/63189277072968

    You may like to review the conditions which was also duplicated. This is going to be very complicated as you have several fields with conditions which you want to be duplicated. It will be very difficult to manage your form.

    I would suggest you to please first separate the form fields which you want to display for your different products. Then it would be easier for you to duplicate. Showing a set of form fields based the click of the Add button will not be a challenge as you do not have to add different conditions for each fields. You can add a form collapse fields and just add one condition to show hide the form collapse field itself which will in turn show all the fields inside form collapse. You may like to take a look at the following guide which should help you how to show/hide multiple field at once:  https://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool

    Thank you!

  • sclark1982
    Replied on November 17, 2016 at 4:44 AM
    Hi,
    Thank you for your response. I have looked at the cloned form link you sent however it is taking me to a 'space pirates' form, is this correct? I thought it was going to be our form? Sorry if I have mis-understood.
    Thank you for your below recommendation of separating the form into fields & then adding more form collapse bars, but can I check I have understood correctly:
    We need to separate the products drop down, so we would effectively have 3 form collapse bars titled, Rugby Shirts, Rugby Shorts, Rugby Socks. It will then contain all the conditions & when we get to the end of the form we can make the button 'ADD SHIRTS' link the user to the 'Rugby Shirts' form collapse & it will contain all the conditions. Have I understood correctly? Or do you feel we need further form collapse's to separate the gender? I would like to be sure before we attempt a trail of doing this because it will take some time to amend the form & correct all the conditions.
    Also can I ask, if we do this, when the form is finally submitted with for example 3 products listed, will they all submit in order on the final printed form? For example, Rugby Shirts will have all design/colour details then show sizes & totals at the bottom. Then it will list the Rugby Short design/colours, then sizes & totals, then socks. The reason I question this is because when I tested cloning the fields as mentioned previously the sizes & qtys for each product grouped together on the final print out form & did not appear under each product information type. Also is there a limit to how many times we direct the user to add another product? We have currently only created the Rugby Section, however we will be adding all our sports-Cricket, Netball, Hockey, Football, Water Sports, etc. In addition we will then be adding our leisure items. All these sports & products will contain their own conditions. Do you see this being a problem? Do you feel the form can cope with this huge selection of products & constraints?
    I am very sorry for all the questions & hope I am explaining clearly, I understand what we are asking for is very complex & detailed. Thank you for your support so far & we look forward to hearing from you again soon.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • Helen
    Replied on November 17, 2016 at 7:11 AM

    Hi Suzanne,

    Thanks for contacting us.

    When I checked the link that my colleague sent to you, I saw the "spaces pirates" form, too. I have no idea that the forms is correct or not. My colleague Ashwin have more informations about this, but he is not online at the moment. However, I will contact to him. When he has any update , you will be saw here.

    Thanks for your understanding.

  • sclark1982
    Replied on November 17, 2016 at 8:44 AM
    Thank you very much. I am testing the suggestion of adding form collapses to my form, but I am finding that it is not showing the fields below. From my understanding anything below a form collapse will appear (providing all visibility is on), but when I preview my form the fields are not there.
    Do you know why this would happen?
    Can you not add form collapses to existing forms, do they need to be set up from the very beginning? I have obviously moved fields up & down & introduced form collapses after the original creation of the form.
    Your help with this matter would be greatly appreciated.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • Boris
    Replied on November 17, 2016 at 11:35 AM

    A Form Collapse will show/hide all the fields under it until it reaches (1) the following Form Collapse field, (2) a Page Break field, or (3) the end of the form.

    In other words, when you add a second Form Collapse, it is not added inside teh first collapsed section, but instead it marks the end of the first collapsed section and the start of a second collasped section.

    Basically, the structure goes like this:

    form
    -form collapse 1
    --field 1
    --field 2
    --field 3
    - form collapse 2
    -- field 4
    -- field 5
    -- field 6
    - form collapse 3

    In the above example, fields 1-3 are under form collapse 1, field 4-6 under form collapse 2, etc. All form collapse fields are on the same level.

    Now, when it comes to your question regarding "looping" through the questions of your form, please keep in mind that this kind of looping by duplicating the fields and conditions will make your form slower and slower the more fields and conditions your form has.

    Your form is already at 172 form fields, along with a large number of conditions, and may cause a browser to freeze when opening the form. It sounds like you need to add many more fields to have all your products offered to the customers, and when done, you wish to duplicate the fields even further to allow them to select the product options several times.

    Considering the setup and your requirements, I'm afraid your form will likely not perform well with having all the form fields you need, and then duplicating those fields and their conditions several times. I would instead recommend either setting up products and product options inside of our payment field, or using a widget such as Configurable List widget where a user can "duplicate" a set of questions as many time as they need.

    This is recommended also in your initial support thread on this subject, here:

    https://www.jotform.com/answers/990297

    If you've missed the answer on your original thread, here is a direct quote of the most relevant part, for reference:

    I would recommend trying to ask your questions either inside a payment field directly, or by using one of the widgets such as Configurable List where a user can enter as many items/rows/entries as they want.

    For a payment field, if you do not want your form to process the payment directly, you can use a Purchase Order payment field. The following guide would help with setting up products with options inside a payment field:

    https://www.jotform.com/help/225-How-to-Add-Options-to-Payment-Forms

    ( More generically on setting up a payment field: https://www.jotform.com/help/165-Setting-Up-Your-First-Order-Form )

    In case you do not want to use a payment field, a Configurable List widget can be used to ask your users a lot of questions, and if they want to answer another set they can simply click on the widget's + button and add another row:

    https://www.jotform.com/help/282-How-to-Set-Up-the-Configurable-List-Widget

    ( More generically on adding a widget to your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form )

    Please try them out, and let us know whether one of these options will work to your satisfaction.

  • Ashwin JotForm Support
    Replied on November 17, 2016 at 12:23 PM

    Hi Suzanne,

    Please accept my apology. It seems I copied wrong form URL. Please take a look at the following cloned form where I duplicated the form fields:  https://form.jotform.com/63211543972959 

    The above form will give you an idea on how you can use form collapse field to show hide multiple fields with just one condition.

    Thank you!

  • sclark1982
    Replied on November 22, 2016 at 7:44 AM
    Hi,
    Thank you for your responses. I have been working on trying to make the payment wizard work & looking at the option of adding form tabs to see if these will help reduce the size of the form & allow it to function quicker (not freeze).
    Please could you help answer the following questions:
    1) If we set up separate forms for each sport, is there a way to link them altogether?
    2) Would the form tab allow this & would this enable the form to work at a normal speed? Or will this have no effect because all fields/constraints are still present?
    3) If we have separate forms for each product we will need the submission to come through on 1 PDF form, will this automatically link when the user clicks submit, or will they need to manage/combine this within the submissions section after completing all forms?
    I hope I am explaining clearly & you are able to help?
    As mentioned above I am currently working on the payment wizard you suggested & amending the form, so it may raise further questions.
    Thank you so far for your support.
    I look forward to hearing from you again soon.
    Many Thanks
    Suzanne
    Sent from my iPhone
    ...
  • amy
    Replied on November 22, 2016 at 7:58 AM

    Hello Suzanne,

    As your new reply is different from this topic, I've split your message. 

    We'll attend here. Please follow the link which I shared with you.

    Thank you!

  • Boris
    Replied on November 22, 2016 at 8:12 AM

    Our apologies for the spam post from user depanange a couple of minutes ago. Their post has just been deleted.

    As mentioned by my colleague Amy above, you can find your other support thread here:

    https://www.jotform.com/answers/995421

    Thank you.