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

Change field's properties based on value of another field #355

Closed
lucasromanojf opened this issue Aug 30, 2018 · 25 comments
Closed

Change field's properties based on value of another field #355

lucasromanojf opened this issue Aug 30, 2018 · 25 comments
Labels
implemented Feature Request implemented request Feature Request
Milestone

Comments

@lucasromanojf
Copy link

Would be great if we have the possibility of changing a field based on other field's value. For example, I have a checkbox that enables/disables another field, or hides/shows another field.

@davidhemphill davidhemphill added request Feature Request planned labels Aug 30, 2018
@lucasromanojf
Copy link
Author

Also, that could be applied to selects/belongsto fields, where after selecting a value, something could happen to another specified field

@noahlocke
Copy link

noahlocke commented Aug 31, 2018

related #300

@rickmacgillis
Copy link

It'd be especially nice if I can use @noahlocke's showIf method to see if the resource model has a certain parameter set in order to display it. (Ex. Check if the resource is an admin, and then show Spark announcements for the user.)

@unxsist
Copy link

unxsist commented Sep 13, 2018

We've just released a package that allows you to display fields depending on values of other fields, it's not fully what you've requested, but it's a start. Maybe it's helpful: https://novapackages.com/packages/epartment/nova-dependency-container

@noahlocke
Copy link

@davidhemphill is this no longer planned? Asking because I saw you closed #300 and mentioned it's not planned for addition into core...

@davidhemphill
Copy link
Contributor

I would use the package listed above as it seems to do everything you want.

@noahlocke
Copy link

@davidhemphill the package mentioned doesn't work, unfortunately. I still think this would be an incredibly valuable contribution to Nova core.

@lucasromanojf
Copy link
Author

I agree to @noahlocke , this should be a core functionality. Hiding/showing/disabling/enabling fields based on other fields values is a very common use case. Also @davidhemphill, it looks like the package is abandoned since October 2018 and has issues.

@jordyvandomselaar
Copy link

Bump, gotta agree there as well.

@seandelaney
Copy link

seandelaney commented Apr 18, 2019

👍

@batFormat
Copy link

+1!

@ronnytorresmtz
Copy link

+1

3 similar comments
@PrafullaKumarSahu
Copy link

+1

@rchl2
Copy link

rchl2 commented Jul 4, 2019

+1

@lotfull
Copy link

lotfull commented Jul 10, 2019

+1

@monadashish
Copy link

Everythings works perfect , but my validation for that field stopped working

@ephraimlambarte
Copy link

+1

2 similar comments
@josespinal
Copy link

+1

@marijoo
Copy link

marijoo commented Feb 14, 2020

+1

@BenWalters
Copy link

@davidhemphill @jbrooksuk has this been thought about any further? The 3rd party package doesn't do exactly what is required, at least not without lots of code duplication! It would be a great feature to have native to Nova and something I keep requiring.
Thanks.

@Payetus
Copy link

Payetus commented Aug 4, 2020

+1

3 similar comments
@georgecoca
Copy link

+1

@lu-roth
Copy link

lu-roth commented Sep 1, 2020

+1

@jhayg12
Copy link

jhayg12 commented Dec 15, 2020

+1

@github-actions
Copy link

github-actions bot commented Oct 6, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2021
@crynobone crynobone added the implemented Feature Request implemented label Dec 10, 2021
@crynobone crynobone added this to the 4.x milestone Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
implemented Feature Request implemented request Feature Request
Projects
None yet
Development

No branches or pull requests