Skip to main content
Nintex Community Menu Bar

File number with hyphen

  • June 1, 2019
  • 2 replies
  • 15 views

Neilinna
Forum|alt.badge.img+1

Hello!

User must type a file number in our form. File number always starts lwith the year: 2019- 

 

What is my best option to have Nintex automatically add a hyphen after the 4th first digits? Please note that the Numbers after the hyphen shouldn’t be counted. 

 

Hope you have some great ideas for me! :) thanks 

-Neilinna 

2 replies

Forum|alt.badge.img+8
  • June 3, 2019

Any reason not to have the field show the "2019-" by default? It seems like the simplest solution would be to have the field have a default value of "2019-" and then they just add the rest.

 

OR, you could have two separate text boxes side by side on the form, and have the first be a max of 4 characters(set in the text field options in the form). Then in a workflow you simply combine the two text boxes with a dash and save to your "FileNumber" field.

 

2430iCF7A088248BD5A85.png

 

2431iABE3978FACB6BDF3.png

 

If you're going to automatically input information at a certain point then it would seem like JavaScript would be your best bet. 

 

 


Neilinna
Forum|alt.badge.img+1
  • Author
  • June 8, 2019

Can’t have 2019- by default cause file number can start from 2003 up to 2019. And next year 2020 and so on.

 

thanks for your answer. I’ll give it a try on Monday.