Add one year

ahmedo

Member
Hi everyone,

I am back again. After over a year of absence.

I have a list that has two elements of Date type.

The list name is subscription with these two elements
start_date
end_date

I would like the end_date to always be a year after the start_date. Basically, once the start_date is entered, the end_date reflects one year after this start_date.

I appreciate any assistance on how to go about it.

Thank you.
 
I can see a couple of ways of doing this. If you need the end_date to show as updated when the start_date is changed then you will need some javascript for the onChange event of the start_date element that updates the end _date. See this for how to get started: http://fabrikar.com/forums/index.php?wiki/comparing-two-dates-in-javascript/

if you don't need to have the end date shown then use a php form plugin, probably the onBeforeProcess and set the end_date there. Details here: http://fabrikar.com/forums/index.php?wiki/php-form-plugin/#plugin-locations
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top