You have two solutions:

  • Use Form.Run instead of Form.RunResult. Run only runs on successful results, so it doesn't run on startup (which triggers failure with no error message).

  • Pattern-match the result value:

1
2
3
4
5
// ...
|> Form.RunResult (function
    | Success result -> // do something with result
    | Failure messages -> ()
)
By on 1/11/2016 1:02 AM ()

Thanks, it works.

By on 1/11/2016 1:18 AM ()
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