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

Customisable currency in Currency action field #3530

Closed
nikspyratos opened this issue Aug 27, 2021 · 2 comments
Closed

Customisable currency in Currency action field #3530

nikspyratos opened this issue Aug 27, 2021 · 2 comments
Labels
request Feature Request

Comments

@nikspyratos
Copy link

Hi there,

Apologies if duplicate. I think this is different to #2534 if I'm reading correctly.

With currency fields, you can specify the display currency for an action in the form of

Currency::make('Price')->currency('EUR'),

or leave currency() empty and it'll default to the nova.currency value (USD otherwise). There don't seem to be any options to be able to customise the currency in this field, e.g.

$currencies = ['EUR', 'GBP', 'USD'];
Currency::make('Price')->currency($currencies);

A workaround I'm using now is have a separate Select for the currencies and then overriding the currency based on that selection, but in the UI the currency symbol won't update because of this.

Could this be done, or something like having a dynamically updating currency field based on another field?

@crynobone crynobone added the request Feature Request label Aug 27, 2021
@davidhemphill
Copy link
Contributor

👋 Hi there! In order to keep this repository focused on bug reports, we auto-close feature requests and requests for help. Feel free to post your feature requests so others can discuss and add reactions. We'll keep an eye on them for later planning.

@github-actions
Copy link

github-actions bot commented Oct 5, 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 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
request Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants