Thanks for reporting with a snippet ;) Looks like a bug with Doc.ButtonValidate, but Doc.Button and Controls.Button both work (but only validate on click).

By on 12/27/2015 12:15 PM ()

:)

Yes, they work, but what I'm trying to achive is to show localized errors as user fills the form, immediately. Is it possible? I assume the whole form validation result is constantly propagated to Submitter.View and I can use it to show errors in "real time". Isn't it not the case?

By on 12/28/2015 12:14 AM ()

There are a couple things I would fix with Doc.ButtonValidate. First, it should really be in UI.Next and not in WebSharper.Forms, and likely under a more precise name, a name that reflects that it provides visual validation (turns on and off).

It should, as you say, provide validation as one types indeed, but right now it doesn't: the code only performs validation on clicks, which is half-silly since when failing it's disabled :)

Anyhow, this is a bug and should be fixed to check the key events as one types and not the click event. I filed a new bug for this.

By on 12/28/2015 4:31 AM ()

I've created a TryWS snippet:

By on 12/27/2015 5:44 AM ()

Did you turn on the "include-prerelease" flag when updating? The package (latest is 3.6.6.16-alpha here) is marked alpha.

By on 12/27/2015 12:05 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper