Habari\FormControlSubmit::do_success PHP Method

do_success() public method

This control only executes its on_success callbacks when it was clicked
public do_success ( FormUI $form ) : boolean | string
$form FormUI The form to which this control belongs
return boolean | string A string to replace the rendering of the form with, or false
    public function do_success($form)
    {
        if (isset($_POST[$this->input_name()])) {
            return parent::do_success($form);
        }
        return false;
    }