Form validation errors in Orbeon 4.2

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

Form validation errors in Orbeon 4.2

rovsh
Hello,

Previously, in versions of Orbeon up to 4.1, we could check form validation and persistence errors using the following code:

<xforms:action if="xxforms:instance('fr-persistence-instance')/is-error = 'true'">
      <xforms:message level="xxforms:log-debug">Got persistence or validation error</xforms:message>
</xforms:action>

However, in Orbeon 4.2 this parameter is no longer available in fr-persistence-instance instance.
How can we check for persistence and validation errors in forms in Orbeon 4.2?

Thanks in advance.

-rovsh
Reply | Threaded
Open this post in threaded view
|

Re: Form validation errors in Orbeon 4.2

Erik Bruchez
Administrator
rovsh,

That's right, this internal flag had to be removed due to the new processes.

At which point do you need the information? When do your actions need to run?

-Erik

On Fri, May 31, 2013 at 7:03 AM, rovsh <[hidden email]> wrote:

> Hello,
>
> Previously, in versions of Orbeon up to 4.1, we could check form validation
> and persistence errors using the following code:
>
> <xforms:action if="xxforms:instance('fr-persistence-instance')/is-error =
> 'true'">
>       <xforms:message level="xxforms:log-debug">Got persistence or
> validation error</xforms:message>
> </xforms:action>
>
> However, in Orbeon 4.2 this parameter is no longer available in
> /fr-persistence-instance/ instance.
> How can we check for persistence and validation errors in forms in Orbeon
> 4.2?
>
> Thanks in advance.
>
> -rovsh
>
>
> --
> View this message in context: http://discuss.orbeon.com/Form-validation-errors-in-Orbeon-4-2-tp4656852.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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: Form validation errors in Orbeon 4.2

rovsh
Hi Erik,

I need this information once user clicks on "save" or "workflow-send" buttons (in other words, when "save" action is executed). Therefore, my actions need to run only if there are validation errors.
So, Is there any other way to check for validation errors?

Thanks,
Rovsh


Erik Bruchez wrote
rovsh,

That's right, this internal flag had to be removed due to the new processes.

At which point do you need the information? When do your actions need to run?

-Erik

On Fri, May 31, 2013 at 7:03 AM, rovsh <[hidden email]> wrote:
> Hello,
>
> Previously, in versions of Orbeon up to 4.1, we could check form validation
> and persistence errors using the following code:
>
> <xforms:action if="xxforms:instance('fr-persistence-instance')/is-error =
> 'true'">
>       <xforms:message level="xxforms:log-debug">Got persistence or
> validation error</xforms:message>
> </xforms:action>
>
> However, in Orbeon 4.2 this parameter is no longer available in
> /fr-persistence-instance/ instance.
> How can we check for persistence and validation errors in forms in Orbeon
> 4.2?
>
> Thanks in advance.
>
> -rovsh
>
>
> --
> View this message in context: http://discuss.orbeon.com/Form-validation-errors-in-Orbeon-4-2-tp4656852.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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: Form validation errors in Orbeon 4.2

Alessandro  Vernet
Administrator
Hi Rovsh,

You should be able to use xxf:instance('fr-error-summary-instance')/valid in your event handler. However, do you have way to run that event handler? I think you would also need the following RFE to be implemented.

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

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet