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

Converting values in edit mode #42

Open
tobystokes opened this issue Jun 24, 2022 · 2 comments
Open

Converting values in edit mode #42

tobystokes opened this issue Jun 24, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@tobystokes
Copy link

I think this is a feature request, unless I'm missing something obvious...

Scenario: I have one group of editors who want to input/see field values in Metric. I have another set of editors, across the pond, who want to input/see values in Imperial.

On the front end, I can handle display conversions great using the toUnit method, but it would be great if changing the unit in the entry UI also updated/converted the value.

@tobystokes tobystokes added the enhancement New feature or request label Jun 24, 2022
@khalwat
Copy link
Contributor

khalwat commented Jun 25, 2022

So you're saying you want a per-user preference for what system is used in the CP?

@tobystokes
Copy link
Author

More that if a user changes the unit from the default, and the field already has a value, that the amount gets converted if the unit changes.

Say user A enters 100cm. If user B comes along and changes the unit to inches, currently the field now displays 100 inches. Whereas what I'd like, and I think may be 'safer' for editors, would be for the number to get converted when the unit changes, in this case, 39.4inches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants