Skip to main content
Nintex Community Menu Bar
Solved

Generating a password

  • December 9, 2019
  • 3 replies
  • 125 views

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

3 replies

Forum|alt.badge.img+10
  • Answer
  • December 9, 2019
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

Forum|alt.badge.img+7

  • Author
  • December 16, 2019

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