Re: RE: Re: 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-tp43363p43368.html
Hank, Denis,
Hank Ratzesberger wrote
Without using an intermediate control, it is complicated, I am not sure
how you can do this.
That's right: at this point you need to use a control for this, and hide it with "display: none".
You can already dispatch events from JavaScript, and we plan to add support for context events (just as you can now on the XForms side with <xxforms:context name="my:control" select="my/control"/>, see:
http://www.orbeon.com/ops/doc/reference-xforms-extensions#dispatch-context). When this is done, you will have another option.
Alex