Move button depending on a radio

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

Move button depending on a radio

inigo10rodri
Hello,

We want to move the button if the first option is selected. The button
should appear here (image1.jpg) and if the second option is selected here
(image2.jpg).

What appears in the capture I have put it manually to explain what the
prototype will be, but the idea is to do it dynamically and only have a
button.

Is there any way to move the button depending on the value of the radio by
XPATH or functions? Or do we have to put two buttons and hide the other
depending on the radio?

Thank you,
Iñigo

<http://discuss.orbeon.com/file/t375647/image2.jpg>
<http://discuss.orbeon.com/file/t375647/image1.jpg>

--
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: Move button depending on a radio

Alessandro  Vernet
Administrator
Hi Iñigo,

I'm afraid that in a case like this you'll have to create 2 buttons, unless
you find some CSS trick to have only 1 button in the HTML, but somehow have
it show in the right place depending on the case. Now, it would be good if
you could avoid having to duplicate the logic for the button(s). Are you
able to do this, which I assume would be the case if the logic is written in
XForms?

‑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: Move button depending on a radio

inigo10rodri
I will do it with two buttons and I will hide or not depending on a formula.
Thanks Alessandro.

Iñigo

--
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: Move button depending on a radio

Alessandro  Vernet
Administrator
Sounds good Iñigo. I was trying to think if there was an opportunity for a
new feature here ;), but I can't think of something that is both general
enough and simple enough to understand / create a UI for. So, like you said,
2 buttons it is, for now.

‑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