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

formBuilder.actions.getData('json', true) does not show disabledFieldButtons #600

Closed
foaadnami opened this issue Aug 31, 2017 · 6 comments
Closed

Comments

@foaadnami
Copy link

It looks like formBuilder.actions.getData('json', true) does not show the newly implemented field attribute disabledFieldButtons

So if I use disabledFieldButtons in either fields or defaultFields, then try to get the data for a DB save then later retrieve it from the DB, the version I get will be without disabledFieldButtons

@kevinchappell
Copy link
Owner

I have been thinking this option should not be in formData after-all, I'd like to move disabledFieldButtons to form options. This wouldn't directly solve your issue but if you are already storing form options in DB you can simply load disabledFieldButtons with the rest of your form options. wdyt?

@foaadnami
Copy link
Author

Yes, that should work. I will also look at extending the logic to perhaps have a field option to limit a field from being added more than once

@kevinchappell
Copy link
Owner

Lets discuss that in #606

@foaadnami
Copy link
Author

@kevinchappell appreciate your super busy but wondering if this is on the decks for getting fixed ?

@foaadnami
Copy link
Author

@kevinchallell Label as bug ?

@kevinchappell
Copy link
Owner

I think the API for this has changed. in the upcoming 2.10.0 disabledFieldsButtons is defined in the options passed on initialization of formBuilder. Since this is an editor feature it shouldn't be present in formData.

Have a look at the latest 2.10.0, you can grab it from the next tag on npm or yarn yarn add formBuilder@next

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

No branches or pull requests

2 participants