<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello Mathias,</div><div class=""><br class=""></div><div class="">this would be great ! </div><div class="">Additionally, this makes me think of another possible enhancement: when displaying a picture in a form tab, it could be nice to hide the label and path/url to the file, which is most of the time useless.  Do I need to do anything more to make these suggestions ?</div><div class=""><br class=""></div><div class="">Didier</div><div class=""><br class=""></div><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" style="orphans: auto; widows: auto;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><br class=""></span></div></div></div></div></div></div></span></div></div></div></div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 26 juin 2015 à 12:07, Matthias Kuhn <<a href="mailto:matthias.kuhn@gmx.ch" class="">matthias.kuhn@gmx.ch</a>> a écrit :</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    I think this would fit into the area of this QEP:<br class="">
    <br class="">
<a class="moz-txt-link-freetext" href="https://github.com/m-kuhn/QGIS-Enhancement-Proposals/blob/fields-and-forms-redesign/QEP-Fields-and-forms-redesign.rst#31-fields">https://github.com/m-kuhn/QGIS-Enhancement-Proposals/blob/fields-and-forms-redesign/QEP-Fields-and-forms-redesign.rst#31-fields</a><br class="">
    <br class="">
    It could be added to the list "Information about fields" next to
    "constraints".<br class="">
    <br class="">
    Any feedback on it is welcome.<br class="">
    <br class="">
    Matthias<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 06/26/2015 11:35 AM, Paolo Cavallini
      wrote:<br class="">
    </div>
    <blockquote cite="mid:625BDFD1-AFAA-4E0F-9235-E5FD0E4437A3@faunalia.it" type="cite" class="">Agreed, an important improvement. Please open a ticket
      if not already there.<br class="">
      All the best.<br class="">
      <br class="">
      <div class="gmail_quote">Il 26 giugno 2015 08:16:32 GMT+00:00,
        "Blumentrath, Stefan" <a class="moz-txt-link-rfc2396E" href="mailto:Stefan.Blumentrath@nina.no"><Stefan.Blumentrath@nina.no></a> 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,

I guess you could use a python init function for the form in order to define "default values" (see: <a moz-do-not-send="true" href="http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic" class="">http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic</a>/).
However, sounds like a useful enhancement of the Custom form functionality (at least I would be interested too)...

Cheers
Stefan

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a> [<a class="moz-txt-link-freetext" href="mailto:qgis-user-bounces@lists.osgeo.org">mailto:qgis-user-bounces@lists.osgeo.org</a>] On Behalf Of didier peeters
Sent: 26. juni 2015 10:08
To: qgis-user
Subject: [Qgis-user] Default values in form

Hello,

Simple question : is there a way to set a default value for an attribute in QGis ?  

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.

Thanks
Didier
<hr class="">
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/qgis-user" class="">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
<hr class="">
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/qgis-user" class="">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
        </blockquote>
      </div>
      <br class="">
      -- <br class="">
      <a moz-do-not-send="true" href="http://faunalia.eu/" class="">http://faunalia.eu</a>/<br class="">
      Sent from mobile, sorry for being short
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">Qgis-user mailing list<br class=""><a href="mailto:Qgis-user@lists.osgeo.org" class="">Qgis-user@lists.osgeo.org</a><br class="">http://lists.osgeo.org/mailman/listinfo/qgis-user</div></blockquote></div><br class=""></body></html>