How can i apply full submission in Whatsapp click to chat?

  • nicole_ha
    Asked on November 12, 2019 at 5:07 AM

    Hi,

    I am stuck at the following:

    I am creating a form where customers share their results with me on whatsapp at the thank you page.

    I am using the purchase order widget and i managed to include the results in the whatsapp click to chat link, like this:

    https://wa.me/phonenumber?text=Hi%20Pouches%2C%0AIk%20wil%20graag%20{mijnProducten:quantity}%20ophalen%20voor%20{mijnProducten:total}%20euro%20om%20{typEen61}%0Aafzender%3A%20{typEen}  

    When a customer fills in a form with only 1 product selected the link will work. see printscreen below:

    1573552231Aantekening 2019 11 12 104254 Screenshot 10

    The red lined text are the submission results from the "{}".

    But when i select more products in the form the link doesn't work anymore. See printscreen below. Only the quantity of the first product selected shows up and the rest is left out....
    I think it is because the purchase order results, at the thank you page (the one between the {}), automatically adds bulleted points and/or adds an new line when a another product is selected in the submission. Correct me if i'm wrong...

    1573552722Aantekening 2019 11 12 103927 Screenshot 21

    Is there maybe a way to edit the underlying code of the {myproducts} and leave out the automatic new line when a customer select more products?
    So the quantity results will line-up after eachother and not below eachother?

    I hope there is a solution for this!!

    Thank you in advance :)

     

    Nicole

  • roneet
    Replied on November 12, 2019 at 7:25 AM

    Unfortunately, it is not possible to extract the products and quantity separately from the Purchase order field.

    The only way is to get the submission data to your custom page and then separate the products, quantity there.

    Also, you can configure the products outside the Purchase order field using the native field.

    1) You will need to split your products into native fields such as "Single choice" or "Multiple Choice" fields, and assign a value to each option: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    2) Then perform the calculations: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    This way all the details would be separated and you can easily pass the data using the unique names in the Thankyou page.

    Let us know which way will suit your needs.

    Thanks.