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

Numeric fields should also have the option to set a default value. #1040

Closed
angrybrad opened this issue Jan 31, 2017 · 3 comments
Closed

Numeric fields should also have the option to set a default value. #1040

angrybrad opened this issue Jan 31, 2017 · 3 comments

Comments

@angrybrad
Copy link
Member

Created by: Steve Adams ([email protected]) on 2015/08/05 16:40:23 +0000
Votes at time of UserVoice import: 4


I have a case where I need to use a numeric field which also has a default value.

For example: numericField needs to have a minimum value of 100 and a max value of 1000, but when the user adds a new entry, the field value should default to 256 in the entry form.

Unfortunately, I cannot trust the user to enter the correct default value, even if it is clearly indicated in the field notes.

Right now, when the user adds a new entry, numericField will always be set to 100 the minimum value.

It would be awesome if I could just set a default value in the Craft's number field type. This feels like it should be part of the core and not a plugin for such a simple feature.

@angrybrad
Copy link
Member Author

Posted by Christian ([email protected]) on 2015/03/09 00:49:13 +0000


Voted! I want to be able to set a default value for all the fields.. :)

@Visiluna
Copy link

Upvote, a thousand times!

@brandonkelly
Copy link
Member

Duplicate of #927

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

3 participants