Issues with Skip/Hide conditions and Product Stocks between two forms are not updated

  • msweigart
    Asked on July 1, 2024 at 1:57 PM

    My form is not collecting the PO I set up!

    I used this help article to set up an invoice (PO) option in addition to CC purchase on my form. It worked perfectly until today.

    Here's the button option on the form:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 1 Screenshot 60

    It shows up as in the back-end of my form. See screenshot.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 2 Screenshot 71

    I have conditional logic set up to hide page 3 when the invoice option is hit. However, this is what page 2 looks like (the PO form no longer populates like it does on the back end):

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 3 Screenshot 82

    Additionally, the items purchased by CC are not updating on the Purchase Order form -- see how the Medal Sponsorship shows it's sold out on the CC form, but not on the PO form.


    CC Form:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 4 Screenshot 93


    Invoice / PO Form:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 5 Screenshot 104

    In case it is helpful, we used Stripe as the CC payment processor.


    Thanks in advance for your help!!!

  • Joseph Christian JotForm Support
    Replied on July 1, 2024 at 3:04 PM

    Hi Meghan,

    Thanks for reaching out to Jotform Support. When I cloned and tested your form, the same thing happened for me. After investigating it a bit, I found a solution. It's really easy to fix. Let me show you how:

    First, let's unhide the iframe embed widget on your form.

    1. In Form Builder, select the iframe embed widget and click on the gear icon.
    2. In the menu on the right that opens, go to the Advanced tab.
    3. Toggle Off the Hide field option.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 1 Screenshot 60Next, let's correct the condition to hide page 2 instead of page 3 when CC is selected.

    1. In Form Builder, in the orange navigation at the top of the page, click on Settings.
    2. In the menu on the left, click on Conditions.
    3. Hover your mouse over the 2nd condition and click the pencil icon to edit.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 2 Screenshot 71Replace the Page 3 to Page 2 as you see below then click Save:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 3 Screenshot 82Check out my screencast below to see my results:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 4 Screenshot 93 As for your other question, unfortunately, the iframe embed widget doesn't sync data between forms. The form embedded via iframe is a separate entity. This means the inventory or data in one form won't automatically reflect or update in the other form. As a workaround, you can manually update the inventory on both forms to reflect the current stock levels. Here's how:

    1. In Form Builder, select the payment field and click the wand icon.
    2. Select the product by clicking on the pencil icon.
    3. Under the Stock tab, update the available stock.
    4. Click Save to apply changes.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 5 Screenshot 104 That's it. Let us know if you have any other questions.

  • msweigart
    Replied on July 2, 2024 at 10:55 AM

    Hi Joseph! Thanks for your reply! This worked, however we are now having a new issue that might be related!

    On the PO / Invoice option, the item selected is not populating on the actual invoices being sent to them. See below.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 1 Screenshot 20


    Any ideas why this is happening and how we can fix it?

    Thanks!

  • Princess JotForm Support
    Replied on July 2, 2024 at 1:12 PM

    Hi Meghan,

    As what my colleague has mentioned, the iframe embed widget doesn't sync data between forms. The form embedded via iframe is a separate entity. This means that the item selected in the form inside the iframe embed widget won't show in the invoice for the current form. When the user submits the form, the invoice that will be sent would be the invoice for the submitted form.

    Now, I reviewed the form from your reference and found a solution. To fix this, you need to add a Submit button on the form inside the iframe embed widget. And once the Invoice payment option is selected, you will need to hide all fields including the submit button of the current form. Let me show you how:

    First, we need to update your Invoice Option form to include the personal information similar to the current form. We also need to add a Submit Button at the end of the form.Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 1 Screenshot 80

    Second, we need to move the Payment Option selection to be the first question in your form.

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 2 Screenshot 91

    Now, Instead of using Skip to/Hide Page Condition, you should use the Show/Hide Field Condition and follow the conditions below:

    Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 3 Screenshot 102Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 4 Screenshot 113

    Here's a screencast of the result (I changed the form color of the PO form to make it easy to identify for testing purposes): Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 5 Screenshot 124

    Screenshots of the Invoice:Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 6 Screenshot 135Issues with Skip/Hide conditions and Product Stocks between two forms are not updated Image 7 Screenshot 146

    Here are the links to my cloned forms for you to check and see the results:

    Also, you can clone the form by following this guide on How to Clone an Existing Form From a URL.

    We also have a guide that you may want to check out about How to Create a Basic Multiple Payment Form.

    Give it a try and let us know if there’s anything else we can help you with.

 
Your Answer