Re: XForms/XPath expressions in 'value' of xforms:setvalue; how to generate a random string (to be used as password)

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/XForms-XPath-expressions-in-value-of-xforms-setvalue-how-to-generate-a-random-string-to-be-used-as-p-tp43363p43369.html

Denis,

Denis Galiana wrote
I'm trying to generate a random password string in a <xforms:setvalue>
sentence.
I am glad you found a solution. Also, we often generate random IDs with:

digest(string(random(true)), 'MD5', 'hex')

Alex