validation using xforms:bind

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

validation using xforms:bind

satya
Hi,
   
   Iam validating the controls using xforms:bind. But when iam using constraint attribute with any particular constraint, iam getting error values.
sample program:

  <form>
      <sample>
            <firstname/>
            <lastname/>
      </sample>
</form>-----------
<xforms:bind ref="sample">
<xforms:bind nodeset="firstname" type="xs:string" required="true()"  constraint="matches(.,'[A-Za-z]{6,15}')"/>

</xforms:bind>

The other problem is, I want to display any alert or message to the user when the user enters the invalid values. I tried to use <xforms:alert/>, but the problem is not solved yet.



 
Regards
Satya K

Reply | Threaded
Open this post in threaded view
|

Re: validation using xforms:bind

Erik Bruchez
Administrator
Try this:

https://gist.github.com/2144633

-Erik

On Mon, Mar 19, 2012 at 10:08 PM, satya <[hidden email]> wrote:

> Hi,
>
>   Iam validating the controls using xforms:bind. But when iam using
> constraint attribute with any particular constraint, iam getting error
> values.
> sample program:
>
>  <form>
>      <sample>
>            <firstname/>
>            <lastname/>
>      </sample>
> </form>-----------
> <xforms:bind ref="sample">
> <xforms:bind nodeset="firstname" type="xs:string" required="true()"
> constraint="matches(.,'[A-Za-z]{6,15}')"/>
>
> </xforms:bind>
>
> The other problem is, I want to display any alert or message to the user
> when the user enters the invalid values. I tried to use <xforms:alert/>, but
> the problem is not solved yet.
>
>
>
>
>
> -----
> Regards
> Satya K
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/validation-using-xforms-bind-tp4487718p4487718.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: validation using xforms:bind

satya
Thanks Erik.
Regards
Satya K