<html><head></head><body>Agreed, an important improvement. Please open a ticket if not already there.<br>
All the best.<br><br><div class="gmail_quote">Il 26 giugno 2015 08:16:32 GMT+00:00, "Blumentrath, Stefan" <Stefan.Blumentrath@nina.no> ha scritto:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hei Didier,<br /><br />I guess you could use a python init function for the form in order to define "default values" (see: <a href="http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic">http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic</a>/).<br />However, sounds like a useful enhancement of the Custom form functionality (at least I would be interested too)...<br /><br />Cheers<br />Stefan<br /><br />-----Original Message-----<br />From: qgis-user-bounces@lists.osgeo.org [mailto:qgis-user-bounces@lists.osgeo.org] On Behalf Of didier peeters<br />Sent: 26. juni 2015 10:08<br />To: qgis-user<br />Subject: [Qgis-user] Default values in form<br /><br />Hello,<br /><br />Simple question : is there a way to set a default value for an attribute in QGis ?  <br /><br />I have Postgis layers in QGis in which I’m inserting or updating data, and I would like that some fields would be filled automatically unless I fill
them myself.  Well that’s the definition of a default value, and I don’t think that using layers stored in Postgis would make any difference.<br /><br />Thanks<br />Didier<br /><hr /><br />Qgis-user mailing list<br />Qgis-user@lists.osgeo.org<br /><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /><hr /><br />Qgis-user mailing list<br />Qgis-user@lists.osgeo.org<br /><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre></blockquote></div><br>
-- <br>
<a href="http://faunalia.eu">http://faunalia.eu</a>/<br>
Sent from mobile, sorry for being short</body></html>