No way to hide a field only on the create form but not on the update form ? #3402
-
Description:Fields have the I want my field to be display everywhere except on the create form, but no fidling with the methods allowed me to hide a field only on one of the form, it is always hidden or show on both. Detailed steps to reproduce the issue on a fresh Nova installation:Examle : // hides the field on both forms
Text::make('test')->hideWhenCreating(),
// hides the field on both forms
Text::make('test')
->hideWhenCreating()
->showOnUpdating(true)
// this show the field on both forms
Text::make('test')
->exceptOnForms()
->showOnUpdating(true) Thanks for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So I guess this is not possible ? Due to the name of the methods and the implementation that makes a clear distinction between create and update, I would definitely expect this to work that way ? |
Beta Was this translation helpful? Give feedback.
-
I moved this to Discussion because it seems you having a problem using these features instead of "it's not possible". I created a demo repo and seems all above working as expected. See nova-issues/issue-3402@19dbc28 |
Beta Was this translation helpful? Give feedback.
I moved this to Discussion because it seems you having a problem using these features instead of "it's not possible".
I created a demo repo and seems all above working as expected. See nova-issues/issue-3402@19dbc28