Why doesn't the form post the product names and so on to Webhooks.

  • Profile Image
    sadlow
    Asked on July 26, 2016 at 10:08 AM

    Why doesn't the form post the product names and so on to Webhooks.

    RequestBin told me, that only an array is given, which only contains:

    "q139_myProducts":{"0":{"id":"1001"},"special_1001":{"item_0":"20"},"special_1002":{"item_0":"1"},"special_1003":{"item_0":"1"},"special_1004":{"item_0":"1"},"special_1005":{"item_0":"1"},"special_1006":{"item_0":"1"},"special_1007":{"item_0":"1"}},"

    but there I cannot get any prices, product names or quantities.

    Is there a box that I forgot to check?



    This is a re-post of a comment on How to Add Options to Payment Forms

  • Profile Image
    david
    Answered on July 26, 2016 at 11:14 AM

    Products are indeed passed as an array.  If you require separate entries with product labels, it would require setting up your products outside of the payment field.  You can then use calculation values:

    http://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    And total those values up in a calculation field:

    http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

    Then pass that total to your payment field:

    http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

    This will allow your products to function the same as any other field.

     

  • Profile Image
    sadlow
    Answered on July 26, 2016 at 11:21 AM

    I don't understand. Everything in the form and the submissions of it works just fine right now, it is just not passed through Webhooks. I can see all values in a final submission entry in my inbox:

    Motiv 1 (Amount: 43.00 EUR, Auflage (Motiv 1): 5)  Motiv 2 (Amount: 57.00 EUR, Auflage (Motiv 2): 10)  Motiv 4 (Amount: 43.00 EUR, Auflage (Motiv 4): 5)  Motiv 7 (Amount: 29.00 EUR, Auflage (Motiv 7): 3)

    "Motiv 1" is the product name and there are the amounts and quantities, I just don't get, why this variables are not posted in an array through Webhooks. I just want this content to be passed, which is obviously in there, because this correct submissions are produced by the widget. How do I get this string, which is already in my inbox!?!? :-(

    my form preview is here: https://www.jotformeu.com/form/61931347292357?preview=true

  • Profile Image
    david
    Answered on July 26, 2016 at 11:26 AM

    It looks like you have multiple threads open regarding this topic.  My colleague will be following up in your other thread shortly:

    https://www.jotform.com/answers/890553-Purchase-Order-Form-content-not-reflecting-in-Webhooks