I have a usecase for saving a draft of a form before actually submitting it.

I'm trying to figure out how to only skip the "required" validators using a "save draft" submit button in my form. Disabling default form processing sounds like using a bazooka to shoot down a fly considering my form has a dynamic number of fields etc.

My only thought so far is to keep a reference of mandatory fields and call their setRequired with false within the submit button's onSubmit.

Would that work? Is there a better way?

Cheers,

Maons

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to