AndyR1
Novice

Generating a password

Jump to solution

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  

0 Kudos
Reply
3 Replies
Mike_K2
Apprentice

Re: Generating a password

Jump to solution
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
0 Kudos
Reply
AndyR1
Novice

Re: Generating a password

Jump to solution

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 

0 Kudos
Reply