Form - generate temporary password

Hello,
I have a question: How I change number of entries in text field from 6 to 8?

GENERATE TEMP PASSWORD.rp (71.5 KB)

Thank you in advance,
Natalie

Hi Natalie,

To generate a password that is 8 characters in length, edit the first OnClick event of the “Generate temporary password” button to 8x the following:

[[('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz12345678901234567890123456789012345678901234567890').substr(Math.floor(Math.random() * 102),1 )]]

The above formula currently gives you one random character. Adding this 7 more times to the Set Text interaction should give you a random character 8 times.

GENERATE TEMP PASSWORD_EDIT.rp (73.2 KB)

1 Like

Thank you very much, Jane! :slight_smile: It works perfectly!!!