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.
Can I open a section conditionally based on quantity of sub-product in prev section?Asked by bdoodle on February 12, 2015 at 02:07 AM
I want to ask customer for color layout specifications if he has ordered a spinnaker. The color specification sections immediately follow the product order section where one can enter a quantity of various sub-product spinnakers. When I open the conditional processing icon, it doesn't show sub-product fields among fields upon which I can create a rule.
My form is: http://www.jotform.com//?formID=50414897840158
Thank you for any help you can provide.
quantity product section sub-product
When I open the conditional processing icon, it doesn't show sub-product fields among fields upon which I can create a rule.
Can you describe more how you were trying to create the condition rule/s for the product/items in your jotform http://www.jotform.us/form/50414897840158
I tried it on a cloned form, I can at lease create a rule for the 4 product/item in the P.O. tool.
were you not able to compose condition rule similar to the screenshot?
We will wait for your further update.
When I open the conditional processing icon, I get a list of fields including Mad Sails: Mad Flying Scot Crosscut Spinnaker, but not any of the sub-products that have a quantity associated with them. I need to test the QUANTITY for > 0. I tried to do it off the product, but it doesn't work...probably because there really isn't a quantity associated with the product.
It occurs to me that I'd also need "or" logic so that if ANY of the appropriate subproducts' quantity were > 0, the other section would show. Either that or I need to do the conditional show based on the subtotal of the spinnaker subproducts in question.
Are you working on this question? You've spoiled me with your prompt answers so far! No screaming hurry; I just want to make sure it's still an open issue.
If you are referring on the sub-product of the main product, unfortunately they are not included as part of the Conditions wizard to be used.
It only applies to the total quantity for the main product, which means when you add custom sub-product on the main product the quantity of it won't be used in the conditions wizard. The quantity for the main product should only be "one".
I would recommend to fully utilize the conditions function, you'll need to use plain form fields and pass the total value to the payment wizard as the final cost. Which means you'll need to add the products and sub-products using text box fields, drop downs, etc...
I hope this helps.
Thank you for your response.
Are you saying that a product's quantity is 1 always OR it starts as 0 and changes to 1 when at least one of its subproducts has a quantity > 0?
In my current form, I have tried to put a condition on the main product (crosscut spinnaker) saying if it's > 0, show the crosscut spinnaker fields in the next section. Conversely, I put a condition on the tri radial spinnaker product saying if it's 0, hid all the tri radial fields in the later section. Neither of these approaches works. Are you saying that this can not work?
Please confirm. If that's the case, I'll try your suggestion of handling products the way you suggest where only the total is passed to the payment wizard.
Yes I believe this is the case, I've tried a simple form with sub-products on it and based from the test that I have it seems that the conditions is not reading the sub-products quantity, and if we think of it the main product should still have a total quantity, but I believe it is not designed that way. The quantity of the main product having sub products with quantity returns a null value for the Conditions wizard, not 0 or a numeric value, well that's how my test shows. I also tried it in your form by cloning it and can't seem to execute any actions whatever conditions the sub-products have.
You can clone the form you have so that you can have 2 main forms, the one having the new changes and the other as a backup or the original version of it. Here's a guide on how to clone it: http://www.jotform.com/help/27-How-to-clone-an-existing-form-from-your-account.
Thank you for your prompt and clear reply.
I'll try it another way.
Thank you for taking the time to update us.
Do contact us again anytime should you require further assistance.