-
agapitoonlineclinicAsked 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
Page URL: https://form.jotform.com/202138146652451 -
Girish JotForm SupportReplied 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:
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.
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.
Hide the current date field and add a Short text field for the Age:
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.
I would also suggest you disable future dates for the "Date of Birth" date field.
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