Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Pixelairport's avatar

Customize fields in Nova Action

I try to make an action, where you have to click a checkbox to check, that you know what you are doing.

    // This is in my actions
    public function fields()
    {
        return [
            Boolean::make('Force Generating')
                ->trueValue('1')
                ->falseValue('0')
        ];
    }

I want to have only "force" as name and want to write a extra text right from the Textbox. Is that possible? Something like

public function fields()
    {
        return [
            Boolean::make('Force Generating', 'force')
                ->trueValue('1')
                ->falseValue('0')
				->helpText('Click here')
        ];
    }

is not possible. Hope somebody can help. Im new to nova and we are working in this project with version 3.

0 likes
0 replies

Please or to participate in this conversation.