Change Form Title with an action return

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

Change Form Title with an action return

earnaizb
Hello,

I'm trying to change the form title with an action return but i can't. In my
forms the title of forms is stored in a field of database. I need to use an
action to get the title value and after that i have to put in the Form
title, but nothing woks.

¿Any idea?

My version of Orbeon is 2017.2.

Regards

Eider



--
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: Change Form Title with an action return

Alessandro  Vernet
Administrator
Hi Eider,

Are you referring to the actions you create in Form Builder under the
Advanced tab? If so, first, those are not available in Orbeon Forms CE.
Second, they can only set the value of a control. If you're referring to an
XForms action, then you'd need to set the title in the `fr-form-metadata`
instance.

You'll let me know if this helps.

-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: Change Form Title with an action return

Alessandro  Vernet
Administrator
Hi Eider, did you manage to change title dynamically? If not, you'll let me
know if you have any feedback on my previous comment.

-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: Change Form Title with an action return

Eider Arnaiz
Hi Alessadro,

I'm very lost. I 've never use XForms actions and i don't know how to do it. 
Where do I have to put the XForms action? in the source code of the form? I read about this tip in Orbeon documentation  but I'm not afraid to clarify.

Regards

Eider


El mié., 26 sept. 2018 a las 20:47, Alessandro Vernet (<[hidden email]>) escribió:
Hi Eider, did you manage to change title dynamically? If not, you'll let me
know if you have any feedback on my previous comment.

-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].

--
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: Change Form Title with an action return

Alessandro  Vernet
Administrator
Hi Eider,

In XForms, actions allow a programmer to write imperative logic of arbitrary
complexity. So it is a way for one to write form-specific logic, which is
safe because it runs on the server. However, using this requires a developer
familiar with XForms.

Getting back to your question, out of curiosity, what is the use that calls
for changing the form title dynamically?

-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: Change Form Title with an action return

Eider Arnaiz
Because users want to reuse a form for 3 different procedures.
The only thing different in these procedures is the title of the form. All other fields are the same.


El lun., 1 oct. 2018 a las 23:44, Alessandro Vernet (<[hidden email]>) escribió:
Hi Eider,

In XForms, actions allow a programmer to write imperative logic of arbitrary
complexity. So it is a way for one to write form-specific logic, which is
safe because it runs on the server. However, using this requires a developer
familiar with XForms.

Getting back to your question, out of curiosity, what is the use that calls
for changing the form title dynamically?

-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].

--
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: Change Form Title with an action return

Alessandro  Vernet
Administrator
Got it Eider, and what you're asking for for the title is similar to what
Orbeon Forms already does since 2018.1 with the support for dynamic labels,
hint, and help messages (see link below). However, one major problem with
the title is that it isn't just shown when the form is loaded, but also on
the Form Runner home page and the summary page for the form. And unlike
labels, you have no choice but to show it there. So, if dynamic, what would
you show? It doesn't seem to me that a dynamic title would work if we want
to use the title on the summary and home page.

https://doc.orbeon.com/form-builder/form-editor/control-settings#dynamic-labels-hints-and-help-messages

However, you could make the first section title dynamic; would that work 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: Change Form Title with an action return

Alessandro  Vernet
Administrator
Hi Eider, if this is still something you're still working on, have you
considered making the first section title, instead of the form title,
dynamic, as suggested in my previous message? If so, 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