PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Total field doubles the price?

  1. Hi !!

    I have created a pretty complicated online booking form using gravity forms. What I need to do is the following:
    If someone inputs or chooses Dec 24, Dec 25, Dec 31st, Jan 1st as the booking date, then I need the total to double in price. How can I make it so that the total doubles the price?

    Any help is greatly appreciated!!

    Marlene

    https://www.prestotaxilimo.com

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  2. Because you're using a date drop down or datepicker, there is no way to use conditional logic (to select a product with double the price, for example, on your four dates.) You could watch the input in the datepicker with jQuery then once that field loses focus, if the data entered is one of your four, check a "holiday surcharge" box in the form. That can be an option for the product equal to the price of the fare, and adding them both to the total will result in doubling the price.

    This is not something that Gravity Forms can do, but you could do it with jQuery.

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  3. Thank you so much for getting back to me! how do I "watch" the in put in the date picker with jQuery? And how could I set it up so that the "Holiday surcharge" appears?? THANK YOU! This is exactly what I need to do! Any help to accomplish this or refer me somewhere where someone can help me is sooo greatly appreciated!!!!!

    Marlene

    https://www.prestotaxilimo.com

    Posted 11 years ago on Saturday February 9, 2013 | Permalink
  4. Looking at this again, would you be open to using a datepicker rather than the date drop down? With the three independent drop downs (month, day, year, even though we need only to watch month and day) it's unnecessarily complex to try and watch for a combination of the month and day fields. If you use a datepicker, we can either check for the value in the field once it's either typed in or populated by the visitor using the datepicker UI. If you're OK with using a datepicker, I will keep working on it. I'm not sure of the best way to approach it on the page when using three drop downs for the date.

    Posted 11 years ago on Sunday February 10, 2013 | Permalink
  5. Oh I wouldn't mind the datepicker at all, I can definitely change it if it will work!! THANK YOU THANK YOU!! Please let me know how to go about doing this when you can, I APPRECIATE IT IMMENSELY!

    Posted 11 years ago on Sunday February 10, 2013 | Permalink
  6. I also wanted to mention that I was looking through my booking forms, and when I check the conditional logic, Date and Time don't appear there at all as an option... Is it just my forms or is this something normal? I actually didn't notice that until now.

    Marlene

    https://www.prestotaxilimo.com

    Posted 11 years ago on Sunday February 10, 2013 | Permalink
  7. Only checkboxes, radio buttons and drop downs are available for use with conditional logic. Date fields are not. I was trying to work around that by checking the date which was selected in the datepicker, and updating an admin only radio button, and using THAT for the conditional logic for the pricing. I'm working on the best way to get the value from the datepicker field.

    Posted 11 years ago on Sunday February 10, 2013 | Permalink
  8. Thanks Chris! Let me know if you find the best way, that would be soo incredibly helpful, gravity forms are amazing, thank you!

    Posted 11 years ago on Sunday February 10, 2013 | Permalink