I need a form that takes the number of days out of a booking and then shows a price that is taken from a table to show the visitor

  • samenonline
    Asked on May 13, 2018 at 4:47 PM

    Hello,

    I am new here and have not worked with forms before. I wonder if there is something in a template like the example here SAMPLE

    It is therefore the date field at reservation on the home-page on which you come with this link.

    The basic elements I can do. The problem to make is the outcome of the number of days of the trip and to multiply it with a price table. I want to manually change the price table per day.

    Hope someone can help me with this.

    Thank you for you time.

    Oskar Jonen

    Jotform Thread 1471210 Screenshot
  • jonathan
    Replied on May 13, 2018 at 6:38 PM

    Please check this demo form https://www.jotform.com/81326850983969

    You can clone the form to better review in your own Form Builder.

    User guide: How to Clone an Existing Form from a URL

    ---

    I used Form Calculation widget to calculate the number of days.

    You can use the Assign Calculation Value to change the price/value in the Price table.

    User guide: How to Assign Calculation Value

    Let us know if you need further assistance.


  • samenonline
    Replied on May 24, 2018 at 8:06 AM

    Thanks. I would like to have the price table in a different place on the website, not in this form. But can I then retrieve the value (price) from the form that is in a different place on the website ?.

    I would be helped if you can tell me how I could do that!.

    Thanks in advance


  • Kevin Support Team Lead
    Replied on May 24, 2018 at 9:53 AM

    You may do it pre-populating the field through the URL parameter: https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters 

    Otherwise you will need to use your form source code in order to implement your own script and pull data from an external source. 

    https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    Thanks. 

  • samenonline
    Replied on May 26, 2018 at 9:33 AM
  • Kiran Support Team Lead
    Replied on May 26, 2018 at 12:03 PM

    Can only a date appear active when I give an enter after I have entered a date?

    You may consider setting up a condition to show/hide the fields when it is filled or empty. 

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    This should help in displaying the date or calculation value when the respective fields are filled.

    2. Where can I change the fonts, and for total payment the dollar sign is a different font!

    You may change the font on the form from the Style tab in the Form Designer.

    152735025026052018 21265633 Screenshot 10

    If you need to change the font for a particular element, it is possible by injecting CSS code to the form. Let us know the form ID and the element that you need to change so that we can provide you with the custom CSS code.

    3. How can I finish the number or day in whole days

    Please take a look at the following guide that can help you with more information on performing calculations using date and time field.

    https://www.jotform.com/help/443-Mastering-Date-and-Time-Calculation

    Please give it a try and let us know if you need any further assistance. We will be happy to assist.