cancel
Showing results for 
Search instead for 
Did you mean: 
furstlars
Nintex Newbie

Can I Build a Dynamic Year Dropdown?

I would like a dropdown with 10 consecutive years, the first year being the current year.

The following example, of course, won't work for the subsequent years, but you should understand what I'm trying to do with this.

Anyone with a successful method please share, thanks.

Labels: (1)
0 Kudos
Reply
7 Replies
jpmhuls
Nintex Newbie

Re: Can I Build a Dynamic Year Dropdown?

Hi Furst Lars‌,

I'm afraid this can currently only be done using JavaScript. Check Marian Hatala‌ reply in the following post: Adding options in choice fields dynamically in Nintex forms 2013.

NB: It seems the Choice control sees numbers as text, and as such the addition does not work..... Wrapping the year result in e.g. Abs() to get a number back rather than a string does not work either.

Reply
furstlars
Nintex Newbie

Re: Can I Build a Dynamic Year Dropdown?

So I tried the following in the choices control:

And when I attempt to round up the 2nd working value (2019.xxxx) using fn-Round, the form throws up an error, even thought the function is available to use!

The subsequent 3rd and 4th functions fail completely.

See how buggy this is? Are you listening, Nintex?

Reply
Automation Master
Automation Master

Re: Can I Build a Dynamic Year Dropdown?

Can the runtime function be used, then the format date occur?

dateAddDays

Retuns the date with the specified number of whole days added to it.

Usage

dateAddDays(date, daysToAdd)

0 Kudos
Reply
jpmhuls
Nintex Newbie

Re: Can I Build a Dynamic Year Dropdown?

Or dateAddmonths(date, monthsToAdd).

0 Kudos
Reply
furstlars
Nintex Newbie

Re: Can I Build a Dynamic Year Dropdown?

dateAddDays is not available in the Nintex choice drop down. Only the Diff function is available. 

0 Kudos
Reply
Automation Master
Automation Master

Re: Can I Build a Dynamic Year Dropdown?

Ok, inline only for that area. What version are you on?

0 Kudos
Reply
furstlars
Nintex Newbie

Re: Can I Build a Dynamic Year Dropdown?

NF 2013 Version: 2.10.1.0

0 Kudos
Reply