-
James_BloomfieldAsked on May 5, 2024 at 8:04 PM
Is it possible to link the quantity of one item to the quantity of another item? In the form I've linked, for a commercial trailer rental, the customer is able to select the number of days for the rental but, the tire insurance should match the number of days the trailer is rented for.
If they select any number from the drop down on the trailer rental, the quantity of the tire insurance should change.
Page URL: https://form.jotform.com/240613311334240 -
Ericson_B JotForm SupportReplied on May 5, 2024 at 9:01 PM
Hi James,
Thanks for reaching out to Jotform Support. I'll need a bit of time to look into this. I'll get back to you as soon as i can.
-
Ericson_B JotForm SupportReplied on May 6, 2024 at 10:21 AM
Hi James,
Thanks for patiently waiting. Unfortunately, you cannot link or copy the quantity of one product to another in the Product List. Each product's quantity must be manually selected by the customer. A workaround is to remove your products from the product list and choose basic elements, such as putting them in a dropdown, and assigning a calculation value to each choice. I created a sample form that might be suitable for your needs. Could you please check this demo form to see if it is similar to what you are looking for?
Once we hear back from you, we'll be able to help you with this.
-
James_BloomfieldReplied on May 6, 2024 at 10:30 AMThis looks great!
Looking forward to the explanation.
James Bloomfield
President
CostWise Business Consulting
(204) 202-1234 Winnipeg - Ext 101
(866) 565-0123 Toll Free
(204) 615-2065 Fax
Confidentiality Note: This email may contain confidential and/or private information. If you received this email in error please delete and notify sender.
________________________________
... -
Ericson_B JotForm SupportReplied on May 7, 2024 at 1:19 PM
Hi James,
Thank for getting back to us, and I am glad you like the workaround I suggested. Check out the steps and screencast below to see how it's done: Let me show you how:
- First, we'll add 3 Short Texts for Deposit with a default value of $250, Tire Insurance x Number of Days and Tire Insurance with a default value of $35.
- Click the Gear icon for Deposit and Tire Insurance x Number of Days, then navigate to the Advanced tab and enter the Default value for Deposit and set them to Read Only.
- For Tire Insurance, set the Default value and Hide the field.
- Next, we'll add a Dropdown element containing the options and assign values for each of them. To learn more, see How to Assign Calculation Values.
- Right click to duplicate the Dropdown, turn off the Calculation Value option in the second dropdown, and Hide the field.
- Then, add a Form Calculation widget to get the total, which will be passed to your Stripe Integration. To learn more, see How to Perform Calculations Using a Widget.
- Next, create Update/Calculate field condition. To learn more, please see How to Insert Text or Calculation Into a Field Conditionally.
- Finally, set the Stripe Integration to a User Defined Amount, then go down to Get Price From, and select Total. You might also want to check out this guide about How to Pass a Calculation to a Payment Field.
Here's my cloned form with the added elements along with conditions, which you can test and clone.Give it a try and let us know if you need any more help.