Jayce
Novice

Default Value in Date field auto-fill from another date field

Jump to solution

Hi all,

 

I have two date fields, the first always requires user input and the 2nd I need calculated from the first by adding 1 year date field 1. Date field 2 may need to be adjusted by the user but i need it to defualt in one year ahead.

 

When using the 'dateadd' function I am not able to select from any Form Controls, i have also attempted to build a form variable however in the Date field i am unable to select my form variables.

 

Sorry if this has been answered but couldnt see any content in the workflow cloud section.

 

Thanks,

Jayce

Labels: (1)
0 Kudos
Reply
2 Replies
butlerj
Community Manager Community Manager
Community Manager

Re: Default Value in Date field auto-fill from another date field

Jump to solution

@Jayce while there is not a way to do this using Default Values, you can do this using Form Rules. For example I can give date 1 the value of DateNow(), and then add a year to that using rules (or rules and variables depending on how you want to build it:

DateNow.png

years2.png

or

YearVar.png

year1.png

Output.png

 

Hope that helps.

 

View solution in original post

0 Kudos
Reply
Jayce
Novice

Re: Default Value in Date field auto-fill from another date field

Jump to solution
Thank you @butlerj the 2nd option worked perfectly 🙂
0 Kudos
Reply