Forms - submitaction removal?

How can we condition if a submit action should be possible in forms as it doesn't accept a closure?
Was this page helpful?