Several fields call a service with only one action

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

Several fields call a service with only one action

inigo10rodri
Hello,

We want to make validations of the fields, those N fields of each form will
use the same action.
That action will be called when the field that has the focus loses it,
sending it the value that field has at that moment to the service that is
linked to that action.

The thing is that the only way we have been able that those N fields call
the same service by creating a single action is through the "edit source".
To do this, we manually add the name of the controls that we want to call
our service (Image attached).

Would it be possible to do it through the interface or is there some other
way, for example, with an 'onblur' event or another way in which the fields
call our service to validate them?

Thanks in advance,
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: Several fields call a service with only one action

Alessandro  Vernet
Administrator
Hi Iñigo,

Are you saying that you have multiple fields that should be validated with
the same logic, and that this logic is implemented in a service? Right now,
if using only the Form Builder UI, you'd have to duplicate the service &
action for each field. So, yes, if you have a way to avoid this by adding
your own XForms, I think that for now this is the way to go. I've also added
a +1 from you on RFE #1304 (see link below), which would help you with this.

https://github.com/orbeon/orbeon-forms/issues/1304

‑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