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

<title> disable SUBMIT button when no changes AND handle units of measure #4098

Open
1 task done
dberardo-com opened this issue Feb 21, 2024 · 1 comment
Open
1 task done
Labels
feature Is a feature request help wanted

Comments

@dberardo-com
Copy link

Prerequisites

What theme are you using?

mui

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

disable submit when no changes

this could be a global prop on the Form, that upon first submit, the form memorizes the formData upon submit and disables submit button if the formData comes back to the last submitted value

--> related feature: add a RESET button to reset to the latest submtited value (or default initial values in case no submission yet)

UoMs

it would be nice if the json schema could be extended to support unit of measure for the single params, this could be particularly helpful for currency values, but not only that.

in particular in MUI would be nice to use a "endAdornment" in the input field that includes the unit of measure.

--> related feature: add uspport for currency formatting widget using 2 decimal places and tousands comma/point separator

Describe alternatives you've considered

No response

@dberardo-com dberardo-com added feature Is a feature request needs triage Initial label given, to be assigned correct labels and assigned labels Feb 21, 2024
@heath-freenome
Copy link
Member

@dberardo-com Give the highly configurable nature of RJSF, you can do all of what you want in your own implementations. You can control how the Submit button is displayed in several ways, either using the uiSchema submitButtonOptions or replacing the default submit button (and adding others) via the children property of the Form. And you can also create/extend the BaseInputTemplate you use to support UoMs.

All that being said, we love getting new features provided by the community.

@heath-freenome heath-freenome added help wanted and removed needs triage Initial label given, to be assigned correct labels and assigned labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is a feature request help wanted
Projects
None yet
Development

No branches or pull requests

2 participants