Skip to content

Form View Add a Number that is 1 up after last Numer in the Year #15023

Answered by mikesealey
Peter1980FFM asked this question in Help
Discussion options

You must be logged in to vote

Hey @Peter1980FFM

You'll want to use a Formula column - formula columns have access to the values stored in other cells of the same row, so you can do a little bit of JavaScript in order to add a year to the date stored in a row.

Firstly, add a formula column to your table, and set it's response to "Date/Time".

Set the Formula to

let date = new Date($("Favourite_year"))

date.setFullYear(date.getFullYear() + 1)

return new Date(date)

Here's an app-export if you want a closer look
15023-export-1732555904685.tar.gz

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants