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

presto5's avatar

Field not showing on form

Following field properly showing on index and detail, but not when editing, please suggest. If I remove onlyOnForms it's still not showing, I put it just to show that I tried that

            Text::make('Image', function () use ($request) {
                    return "test";
                }),

            Text::make('Image2', function () use ($request) {
                    return "test";
                })->asHtml()
                ->onlyOnForms(),
0 likes
1 reply
YuvrajTimalsina's avatar

It appears that you are trying to display two text fields using Laravel Nova's Text field type, but you're having trouble getting them to show up when editing. If removing the onlyOnForms method doesn't work, there might be an issue with how the fields are associated with the model being edited. Double-check that you're passing the correct model instance to your Nova resource's edit method and that the fields are properly defined within the fields method. If everything looks correct, you could try using a different field type to see if that resolves the issue. Also, clearing your browser cache or using a different browser could help rule out any caching or browser-specific issues.

Please or to participate in this conversation.