You are viewing limited content. For full access, please sign in.

Question

Question

How to set Expiry Date to be five years from Effective Date in a form field

asked on March 5, 2020

Can someone show me how I can get the Expiry Date on a form to automatically fill with a date five years after whatever someone plugs into the Effective Date field?

1 0

Answer

SELECTED ANSWER
replied on March 5, 2020

You can set calculation for the Expiry Date as "=ADD_MONTHS(Effective_Date_field,60)" which will add 5 years based on the Effective Date field. 

 

1 0
replied on March 6, 2020

Perfect!  Thanks, Xiuhong!

0 0
replied on November 19, 2021

hi,

I'm attempting the same thing but in a collection.   I want the expiration date to be 10 years from manufacture date. When I use the field name, I get this:

I've also tried it with the actual variable, like this:

and get the same error.

Any help would be greatly appreciated.

Donnie

0 0
replied on November 19, 2021 Show version history

I'm not good at this, but I do know that because you have it in a table, you're going to need the extra coding that allows it to do this per row.  I've attempted to get it, but I don't have it quite right yet.  Maybe someone with more experience in this can help?

=ADD_MONTHS((VALUE(INDEX(ppe.ppe1_helmetmfrdate,120), ROW())))

0 0
replied on November 23, 2021

You can use formula as following:

 =ADD_MONTHS(INDEX(PPE.Helmet_Manufacture_Date, ROW()),120)

1 0
replied on December 1, 2021

Thanks for the assistance on this, it works perfectly!

0 0
replied on June 21, 2022

Thank you!!!!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.