RE: validate = false

Posted by Ryan Puddephatt on
URL: https://discuss.orbeon.com/validate-false-tp32524p32528.html

I don't think you can do this, only certain fields allow AVTs, one solution
is to create two submissions one true one false and call

Then do something like

<xforms:send submission="submit_model_Document_true"
        if="xxforms:instance('url')/validate = 'true'"/>
<xforms:send submission="submit_model_Document_false"
        if="xxforms:instance('url')/validate = 'false'"/>

Hope this helps

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Colin Seaman [mailto:[hidden email]]
>Sent: 24 January 2007 15:07
>To: [hidden email]
>Subject: [ops-users] validate = false
>
>Hi,
>
>I'm trying to dynamically set the validate="false" attribute
>on my XForms submission, but it seems I'm unable to do so.
>
>I have the code:
>
><xforms:submission id="submit_model_Document"
>ref="instance('instance_model_Document')"
>action="{xxforms:instance('url')/serverpath}/read-xform.php?act
ion={xxforms:instance('url')/submit/submitaction}"

>method="post" validate="{xxforms:instance('url')/validate}" />
>
>with the value of instance('url')/validate equalling "false",
>but it appears that this doesn't work.
>
>Does the fact that this value is set automatically mean that
>the value of "validate" equals true...??
>
>How can I achieve this?
>
>--
>Colin Seaman
>Senior Developer
>
>Tradocs Ltd,
>Tower Point,
>44 North Road,
>Brighton,
>BN1 1YR
>
>email:     [hidden email]
>skype:     colin,seaman
>telephone: 0870-1417031
>website:   http://www.tradocs.net
>
>This email and any files transmitted with it are confidential
>and intended solely for the use of the individual or entity to
>whom they are addressed. If you have received this email in
>error please contact Tradocs. Please note that any views or
>opinions presented in this email are solely those of the
>author and do not necessarily represent those of the company.
>Finally, the recipient should check this email and any
>attachments for the presence of viruses. The company accepts
>no liability for any damage caused by any virus transmitted by
>this email.
>This content of this email is without prejudice.
>
>
>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws