validate one control by save-draft

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

validate one control by save-draft

pouyan

I have email input control in my form , when click on save I would like to validate only email input
and not other controls in my form, If I use "validate-all" it validate all of controls
 

 <property as="xs:string" name="oxf.fr.detail.process.save-draft.legal.*" >
         save
         then send(uri="http://user:pass@localhost:9090/smartform/admin/public/FormWService/formSave",
                   method="post")
         then success-message("save-success")
         recover error-message("database-error")
  </property> 
Reply | Threaded
Open this post in threaded view
|

Re: validate one control by save-draft

Alessandro  Vernet
Administrator
Hi Pouyan,

It looks like you want to have on some fields "hard" validations that,
if invalid, prevent users from saving, and on some other fields "soft"
validation that are running but don't prevent users from saving data.
You can do this since Orbeon Forms 4.3 setting a "level" for your
validation. If you set the level to "warning" instead of "error", the
alert will show, and upon saving users get a "hey, you got some
warnings, are you sure you want to go ahead?" type of message. For
more on this see:

http://blog.orbeon.com/2013/07/enhanced-validation-in-form-builder-and.html

Alex

On Mon, Jan 12, 2015 at 10:52 PM, pouyan <[hidden email]> wrote:

>
> I have email input control in my form , when click on save I would like to
> validate only email input
> and not other controls in my form, If I use "validate-all" it validate all
> of controls
>
>
>  <property as="xs:string" name="oxf.fr.detail.process.save-draft.legal.*" >
>          save
>          then
> send(uri="http://user:pass@localhost:9090/smartform/admin/public/FormWService/formSave",
>                    method="post")
>          then success-message("save-success")
>          recover error-message("database-error")
>   </property>
>
> --
> View this message in context: http://discuss.orbeon.com/validate-one-control-by-save-draft-tp4659422.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet