Create link dinamic in form builder

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Create link dinamic in form builder

alessiovaralta
Hi,

I have a text output field where I have to put a calculate link.
The problem is if I check use html and after insert the value  google
<https://www.google.it>   the component generate a link.
If I insert the value under Calcultaed Value or Iinitial Value, generate the
string

google <https://www.google.it>   and not the link...

I have to create the link in base of paramters of other fields..So how I can
make?

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Create link dinamic in form builder

Alessandro  Vernet
Administrator
Hi Alessio,

For the calculated value to be interpreted as HTML, you need to edit the
source of the form, and add `mediatype="text/html"` on the `xf:output`.
There could be a simple checkbox in the Form Builder UI for this, but we
think it is a good idea to make this a bit harder for form authors ;),
because this is a possible vector for XSS, so you need to think a bit when
you do this, and make sure you know what you're doing.

You'll let me know if this works for you.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Create link dinamic in form builder

Alessandro  Vernet
Administrator
Also, I've attached the source of a form that shows this "in action", even if
there isn't that much to it :). -Alex

form.xml <http://discuss.orbeon.com/file/t119778/form.xml>  

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Create link dinamic in form builder

alessiovaralta
Ok resolved, very frendly.
Thanks

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Create link dinamic in form builder

Alessandro  Vernet
Administrator
Excellent Alessio, I'm glad it worked! -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet