Change unit price

  • agapitoonlineclinic
    Asked on August 2, 2020 at 8:32 PM

    Hello support,

     

    Can you help me change the unit price from $ to PHP- Philippine peso? How do I also add to type in the patient's AGE right after birthdate?

     

    Thanks.

    Link:  https://form.jotform.com/202138146652451

     

  • Girish JotForm Support
    Replied on August 2, 2020 at 10:27 PM

    Hello,

    Select the product list field, click on the Product list icon, go to Settings, and then change the currency:

    15964203050308 1 Screenshot 10

    I have made that change on your form.

    How do I also add to type in the patient's AGE right after birthdate?

    Firstly use a Date Picker field for the Date of Birth field.

    15964211660308 4 Screenshot 21

    You can set up the form to automatically calculate the Age from the birth date. For that, you will need to add another Date field on the form and set it up to the current date.

    15964205580308 2 Screenshot 32

    Hide the current date field and add a Short text field for the Age:

    15964207200308 3 Screenshot 43

    Then create a condition that says, "If the 'Date of Birth' date field is filled, calculate the age". 

    To calculate the Age, subtract the "Date of Birth" date field value from the "Current Date" date field value. The difference will be in days, so you need to divide the value by 365.25 days to get the year(s). 

    You also need to get the value rounded down, that is why you will use the "floor()" math function.

    1596421592screencast03082020 1 Screenshot 54

    I would also suggest you disable future dates for the "Date of Birth" date field.

    15964212640308 5 Screenshot 65

    Please check this demo form: https://form.jotform.com/202148152175954 

    You could clone this form into your account if required: How-to-Clone-an-Existing-Form-from-a-URL