Feature request #9535

Set standard value in value map

Added by Victor Axbom over 5 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Digitising
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:18123

Description

It would be great if you could be able to set a standard value in the value map edit widget. This standard value should then automatically be selected in the dropbox when you create a new object. As it is now the values are just sorted alphabetical in the dropbox and the first value is chosen.

History

#1 Updated by Jürgen Fischer over 5 years ago

Note: Such default values would conflict with the default values the data provider can deliver (eg. in postgres).

#2 Updated by Matthias Kuhn over 5 years ago

This should be defined on the field and not on a widget IMO.
It is about the same level of abstraction as the domains/constraints discussed in Brighton.
I don't think this necessarily conflicts with default values by providers. This feature would need to be enabled explicitly and if disabled provider defaults should be used.

#3 Updated by Giovanni Manghi about 2 years ago

  • Easy fix? set to No

#4 Updated by Nyall Dawson over 1 year ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

I think this can be closed. The widget can now default to NULL values, or alternatively users can set default values for fields in a multitude of different ways. Together these address the intended use case described here.

Also available in: Atom PDF