Change unit price

  • Profile Image
    agapitoonlineclinic
    Asked on August 02, 2020 at 08: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

     

  • Profile Image
    gerardw
    Answered on August 02, 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.png

    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.png

    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.png

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

    15964207200308_3.png

    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.gif

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

    15964212640308_5.png

    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