Anyway to do some formula of button ereor

Supposed i have one button push and one formula is ereor invalid action (api)

Is it possible to have it push anpther button or to modify one column in that same row?

More context? . . . . .