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.
May 7, 2023
1
Level 1
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(),
Please or to participate in this conversation.