Want to calculate age automatically based on entering a date.

  • areumleeal
    2023년 8월 31일 오후 12:32에 질문함

    + 그리고 나이를 계산해야 하는데 어떤 위젯을 써야하나요?

    "@year @months" 라고 옆에 입력하고 싶습니다.

  • Mohammad_D
    2023년 8월 31일 오후 1:00에 응답함

    Hi areumleeal,

    Thanks for reaching out to us for help. Sure, you can calculate the Age automatically on your form. Let me show you how:

    • In Form Builder, click on the Add Form Element menu on the left side of the page. 
    • Scroll down and add the Date Picker field to enter the Date of Birth.

    Want to calculate age automatically based on entering a date Screenshot 50

    • To save the current date, add one more Date Picker field.
    • Click on the Gear icon near the second Date Picker and, under the Options tab, select the Current value as Default Date.
    • Then, right-click on the second one and click on Hide.

    Want to calculate age automatically based on entering a date Screenshot 61

    • Now, open the Add Form Element menu again, and Under the Widgets tab, add the Form Calculation widget.

    Want to calculate age automatically based on entering a date Screenshot 72

    • Enter the formula below:

    Want to calculate age automatically based on entering a date Screenshot 83

    Give it a try and let us know if you have any other questions.