Skip to main content
Nintex Community Menu Bar
Solved

Generating a password

  • Dec 9, 2019 3:18 PM UTC
  • 3 replies
  • 174 views
  • Translate All

I have an application that when a form is submitted it generates a random 8 digit password. The password will be created form three fields in the form which are joined in to a single string. Them using the random number experession to generate 8 numbers that corresepond to a characters position in the string. The bit I am struggling with is the expression to get the nth number in the string. Can anybody advise on how to get the nth charchter in the string or even if there is a better way to do it .

 

Thanks  

Best answer by Mike_K2

Hi Andy,

I'd think you could use the "Mid" expression, found under the text category in the expression builder to achieve this.

Mid( $String, 5, 5) or Mid( $String, 5, 6) would return a single character I'd think.

Regards,

Mike
View original

3 replies

Forum|alt.badge.img+10
  • Answer
  • Dec 9, 2019 8:07 PM UTC
Hi Andy,

I'd think you could use the "Mid" expression, found under the text category in the expression builder to achieve this.

Mid( $String, 5, 5) or Mid( $String, 5, 6) would return a single character I'd think.

Regards,

Mike
Translate

Forum|alt.badge.img+7

  • Author
  • Dec 16, 2019 8:56 AM UTC

Mike,

 

This great. The only thing now is the passord is generated using a mix of lower case and upper case letters. but when yiu type the autogenerated password in to the password field its not case sensitive. Is there any way to set the password field to be case sensitive.

 

Many thanks

 

Andrew 

Translate