Problem Conditional logic integration with WhatsApp.

[ad_1]

I made conditional logic like this

<div class="whole-form">

<span>
<label> Pick-up Location
    [select* pick-up "" "Airport Ngurah Rai" "Amed" "Bedugul" "Candi Dasa" "Canggu" "Gilimanuk" "Kintamani" "Kuta" "Legian" "Lovina" "Medewi" "Nusa Dua" "Padang bay" "Pemuteran" "Sanur" "Seminyak" "Sidemen" "Tanah Lot" "Tu Lamben" "Ubud" "Uluwatu"] </label>

<label> Destination Location
    [select* destination "" "Airport Ngurah Rai" "Amed" "Bedugul" "Candi Dasa" "Canggu" "Gilimanuk" "Kintamani" "Kuta" "Legian" "Lovina" "Medewi" "Nusa Dua" "Padang bay" "Pemuteran" "Sanur" "Seminyak" "Sidemen" "Tanah Lot" "Tu Lamben" "Ubud" "Uluwatu"] </label>
</span>


<span class="pd-whole-form">
<label> Pick-up date
    [date* date-booking] </label>
<label> Our Vehicle
    [select* vehicle "" "Daihatsu Xenia" "Izusu Elf Short" "Suzuki APV" "Suzuki Ertiga"  "Toyota Avanza" "Toyota Hiace" "Toyota New Avanza"] 
</label>
</span>


[group price-300]
  <span>
   <label> Price
       [text price readonly "300k"] </label>
  </span>
[/group]

[group price-350]
  <span>
   <label> Price
       [text price readonly "350k"] </label>
  </span>
[/group]

[group price-400]
  <span>
    <label> Price
       [text price readonly "400k"] </label>
  </span>
[/group]

[group price-450]
  <span>
   <label> Price 
       [text price readonly "450k"] </label>
  </span>
[/group]

[group price-500]
  <span>
   <label> Price 
       [text price readonly "500k"] </label>
  </span>
[/group]

[group price-550]
  <span>
    <label> Price
     [text price readonly "550k"] </label>
  </span>
[/group]

[group price-600]
  <span>
   <label> Price 
     [text price readonly "600k"] </label>
  </span>
[/group]

[group price-650]
  <span>
    <label> Price 
     [text price readonly "650k"] </label>
  </span>
[/group]

[group price-700]
  <span>
   <label> Price
     [text price readonly "700k"] </label>
  </span>
[/group]

[group price-750]
  <span>
    <label> Price
     [text price readonly "750k"] </label>
  </span>
[/group]

[group price-800]
  <span>
    <label> Price
      [text price readonly "800k"] </label>
  </span>
[/group]

[group price-850]
  <span>
    <label> Price
      [text price readonly "850k"] </label>
  </span>
[/group]

[group price-900]
  <span>
    <label> Price
      [text price readonly "900k"] </label>
  </span>
[/group]

[group price-950] 
  <span>
    <label> Price
      [text price readonly "950k"] </label>
  </span>
[/group]

[group price-1000]
  <span>
   <label> Price
     [text price readonly "1000k"] </label>
  </span>
[/group]

[group price-1100]
  <span>
    <label> Price
      [text price readonly "1100k"] </label>
  </span>
[/group]

[group price-1200]
  <span>
   <label> Price
    [text price readonly "1200k"] </label>
  </span>
[/group]

[group price-1400]
  <span>
    <label> Price
     [text price readonly "1400k"] </label>
  </span>
[/group]

[group price-1500]
  <span>
    <label> Price
      [text price readonly "1500k"] </label>
  </span>
[/group]

[group price-1600]
  <span> 
    <label> Price
      [text price "1600k"] </label>
  </span>
[/group]

[group car-option]
   <label class="pax">1 - 4 Pax and bags</label>
[/group]

[group one-car]
     <label class="pax">5 - 12 Pax and bags</label>
[/group]

[submit "Process"]
</div>

When submitting the form the data is sent via WhatsApp, I use the social contact form for this,

with the following message body:
Pick-up Location: [pick-up]Destination Location: [destination]Date Booking: [date-booking]Verhicle: [vehicle]Price: [price]

But what was sent to WhatsApp was only a price of 1600k for all conditions. How to come up with prices based on conditions?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer