ifInvalid

inline fun <T> Form.FieldState<T>.ifInvalid(onInvalid: () -> Unit)(source)

Does the action of onInvalid if this instance is invalid.