fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
zilti 2020-10-10T13:03:45.231100Z

I have a question about form validation... I created a validator using fs/make-validator. It works fine for checking individual fields, but when calling (portfolio-company-validator props) I always get back :unchecked. How do I get it to check?

tony.kay 2020-10-10T15:03:35.232200Z

@zilti documented in book under validation. You have to mark fields complete. This is to prevent showing errors before you’re ready

zilti 2020-10-10T15:04:19.233Z

I marked all fields complete, and they react accordingly and correctly as expected. But calling the validator on the entire form always returns :unchecked

zilti 2020-10-10T15:07:53.233700Z

I even marked the props complete that have no input field, like :company/id

kwladyka 2020-10-10T18:24:05.235700Z

Hi, you can try https://github.com/kwladyka/form-validator-cljs . It is independent library. Maybe it will be helpful for you.

Mr. Savy 2020-10-10T23:25:15.236800Z

dumb question, but where does route-immediate sit? Book says data-fetch but it's not there!

Mr. Savy 2020-10-10T23:28:08.236900Z

survey says: dynamic-routing nvm