Field preset default value like --random_str()-- - not working

Hi Sirs,

#classic
I am trying to set a textbox default value please photo below.

Regards,

It’s not working on vue

This has been resolved as of version 2.3

1 Like

I need someone to remind me how to add a prefix with the random code generator when adding to the default value

PREFIX = IVN
PREFIX-RANDOM-STR-PHPRAD-CLASSIC

–random_str(9)–

ex IVN-’–random_str(9)–’
RESULT: IVN-215DJHD

Hi @snarthost,

You have to put it like this if you are using the classic version.

–‘INV-’ . strtoupper(random_str(9))–

Thanks for the help, however in version 5.0 it seems that this function is not working. Below is the code I used in a previous project, I believed the error was mine but there was some change.
my old code

"ivn-".random_str(8)

hi @snarthost ,

Try replace double qoute " with single qoute ’

"ivn-".random_str(8)

to

'ivn-'.random_str(8)

I am using 5.0 too.

Thanks,