Feature request #13109

Default values in forms

Added by didier peeters over 1 year ago. Updated 11 months ago.

Status:Closed Start Date:07/10/2015
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Forms
Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

There should be a possibility to set default values in the form. From a discussion on Qgis-user it appears that we should have the possibility to set a default value in the form design, and decide if it precedes or not the previous value entered.
IMO, by default the default values precede the last inserted values (otherwise defining default values would be somehow useless), except where specified otherwise in the field definitions. So there would be an option in each field definition (a checkbox, next to the default value definition field) stating that the last non null inserted values do precede the default one. But others consider that the last value should have precedence.
In any case this should be set at the level of the field. I don't know if it should also be possible to specify in this order of precedence the default values provided by the database (i.e. when using a layer stored in PostgreSQL).

I added this point also here : https://github.com/qgis/QGIS-Enhancement-Proposals/pull/13

History

Updated by J├╝rgen Fischer over 1 year ago

  • Subject changed from Default vaues in Forms to Default values in forms

Updated by Nyall Dawson 11 months ago

  • Status changed from Open to Closed

Duplicate of #12492

Also available in: Atom