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

When creating a new form element, add an option to set default value (for radio buttons at least) on all existing entries. #133

Open
eikonos opened this issue Oct 13, 2014 · 4 comments

Comments

@eikonos
Copy link
Collaborator

eikonos commented Oct 13, 2014

If you create a new radio button element, and set the default to Yes, then either set that value on all existing records, or add an option so the user can choose to do so.

@eikonos eikonos added this to the Backlog milestone Oct 13, 2014
@eikonos eikonos removed this from the Backlog milestone Jan 9, 2015
@Annzubork Annzubork self-assigned this Jan 17, 2015
@eikonos eikonos assigned jostudio and jnip and unassigned Annzubork and jostudio Mar 16, 2015
@eikonos
Copy link
Collaborator Author

eikonos commented Mar 16, 2015

As an example of how this should work, suppose there is a radio button element with no default value set. Some records are created, say 10, 20, whatever, and a bunch of those have no value selected in the radio button element. Then you want to set a default value. You go to the admin page for the radio element, and choose one value to be the default. Currently, nothing happens to existing values, but in some cases we may want all existing blank values to be set to that default. This change would add a checkbox labelled "Apply this default value to all existing blank values.", and when the change is saved, all the existing values are updated.

@jnip
Copy link
Contributor

jnip commented Mar 20, 2015

#203

@jegelstaff
Copy link
Owner

Yeah, this should be generalized for all elements, perhaps taking advantage of a method in the element class

@jegelstaff
Copy link
Owner

Should be generalized to handle newly created defaults on existing elements. Basically all elements need a choice to populate null fields in the database with the default value, at any time.

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

No branches or pull requests

5 participants