• 0
NeoInJS

Date Calculation in a submission form

Question

Hello - I need help for  custom JS to compute and display the Calibration_Due in a submission form when the user inputs the Last_Calibration date and the Calibration_Frequency

 ·         Calibration_Due = Last_Calibration + Calibration_Frequency

 Where field types are

  • Calibration_Due – date
  • Last_Calibration  – date
  • Calibration_Frequency – number of months

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
On 2/15/2017 at 0:44 PM, NeoInJS said:

Hello - I need help for  custom JS to compute and display the Calibration_Due in a submission form when the user inputs the Last_Calibration date and the Calibration_Frequency

 ·         Calibration_Due = Last_Calibration + Calibration_Frequency

 Where field types are

  • Calibration_Due – date
  • Last_Calibration  – date
  • Calibration_Frequency – number of months

Hello,

Why don't you use formula field on the table level?

Example of the formula:

Dateadd(mm, [@field:Calibration_Frequency ],[@field:Last_Calibration])

If Java script is a better option for you, you may check this post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now