Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideWhenUpdating does not work properly #51

Open
ObaydaAlesawi opened this issue Jul 24, 2023 · 1 comment
Open

hideWhenUpdating does not work properly #51

ObaydaAlesawi opened this issue Jul 24, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@ObaydaAlesawi
Copy link

I'm using hideWhenUpdating on a field that's in SimpleRepeatable, but it did not hide the field, any ideas why?

@p-jrv p-jrv added the help wanted Extra attention is needed label Dec 1, 2023
@mrleblanc101
Copy link

Same, I have Text::make('Label') and URL::make('URL') that display this table when editing.
Screenshot 2024-01-24 at 10 07 40 AM.
I want to hide the "Label" field and display a combined link like so:

SimpleRepeatable::make('Links', 'links', [
    Text::make(__('Label'))->onlyOnForms(),
    URL::make(__('URL'))
        ->displayUsing(fn ($url, $row) => $row['label']),
])

I would expect this result:
Screenshot 2024-01-24 at 10 11 37 AM
But I get this, the Text::make('Label')->onlyOnForms() is not hidden.
Screenshot 2024-01-24 at 10 11 42 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants