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

[Question] A way to include a field that is are not dirty #266

Open
Nyloth9 opened this issue Nov 22, 2024 · 2 comments
Open

[Question] A way to include a field that is are not dirty #266

Nyloth9 opened this issue Nov 22, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@Nyloth9
Copy link

Nyloth9 commented Nov 22, 2024

I have a radio component with three options; A, B and C. A is the default value. A feature I would like, or maybe I'm missing something that exists, is; I would like to include the radio in the submitted values even if the user did not change the radio value and it remained the default "A". I don't want do this with a global shouldDirty flag on the form, as I very much the behavior of only including the dirty values - except in the case of the radio input. So basically is there something like a shouldDirty flag just for the specific field or some workaround i could use for it to behave as i described?

@fabian-hiller
Copy link
Owner

I am not sure if I understand you correctly. Do you want your form to return an initial value of "A" when submitted?

@fabian-hiller fabian-hiller self-assigned this Nov 22, 2024
@fabian-hiller fabian-hiller added the question Further information is requested label Nov 22, 2024
@Nyloth9
Copy link
Author

Nyloth9 commented Nov 22, 2024

Yes exactly. Even if the user did not interact with the radio I want it to be submitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants