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

Can state emitter/handler be used to update a select field's options? #1702

Closed
ingageco opened this issue Feb 1, 2023 · 2 comments
Closed
Assignees
Labels

Comments

@ingageco
Copy link

ingageco commented Feb 1, 2023

Hey team - can a state emitter & handler be used to update a field's options? I'm looking to use one field to filter options in another (select) field.

Ideally the change would trigger a WP filter that would provide new options, rather than just filtering existing options.

Thank you!

@AlexGStapleton
Copy link
Member

Hi @ingageco,

This can be done by creating a custom callback and filtering the form as needed.

Kind regards,
Alex

@ingageco
Copy link
Author

ingageco commented Feb 8, 2023

Thank you @AlexGStapleton !

@ingageco ingageco closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants