<!DOCTYPE html>
<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p>Hi,</p>
    <p><br>
    </p>
    <p>So for the style, you might have hit this issue :
      <a class="moz-txt-link-freetext" href="https://github.com/3liz/lizmap-web-client/issues/3952">https://github.com/3liz/lizmap-web-client/issues/3952</a></p>
    <p>The settings for your form where on another style that the one
      loaded by default ?</p>
    <p><br>
    </p>
    <p>> Can I use geometry expression?</p>
    <p><br>
    </p>
    <p>As Ulisse said, it works only for newly created features. And so
      the geometry is not yet digitized when you open the creation form,
      so no, it won't works for now.</p>
    <p>You would need a PostgreSQL trigger.</p>
    <p>It's the issue
      <a class="moz-txt-link-freetext" href="https://github.com/3liz/lizmap-web-client/issues/3226">https://github.com/3liz/lizmap-web-client/issues/3226</a> about all
      scopes for expressions in editing form.<br>
    </p>
    <p><br>
    </p>
    <p>Keep in mind that LWC 3.5 is already retired and not maintained
      as well ;-)<br>
    </p>
    <p><br>
    </p>
    <p>Regards,<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/03/2024 16:51, Ludovico Frate via
      Lizmap wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AS2PR10MB692822F2A9F33D041DCD2E4DD62B2@AS2PR10MB6928.EURPRD10.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div class="elementToProof"
style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
        SOLVED: I had a problem with the style associated to the layer. 
        Now is working. But I have another question: Is there a list of
        expression that can be used? Can I use geometry expression?</div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>Da:</b> Ludovico
          Frate <a class="moz-txt-link-rfc2396E" href="mailto:ludovicofrate@hotmail.it"><ludovicofrate@hotmail.it></a><br>
          <b>Inviato:</b> martedì 12 marzo 2024 16:09<br>
          <b>A:</b> <a class="moz-txt-link-abbreviated" href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:lizmap@lists.osgeo.org"><lizmap@lists.osgeo.org></a>; René-Luc Dhont
          <a class="moz-txt-link-rfc2396E" href="mailto:rldhont@gmail.com"><rldhont@gmail.com></a>; Ludovico Frate
          <a class="moz-txt-link-rfc2396E" href="mailto:ludovicofrate@hotmail.it"><ludovicofrate@hotmail.it></a><br>
          <b>Oggetto:</b> R: [Lizmap] R: R: R: Lizmap Server Plugin</font>
        <div> </div>
      </div>
      <style type="text/css" style="display:none">p
        {margin-top:0;
        margin-bottom:0}</style>
      <div dir="ltr">
        <div class="x_elementToProof"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">It
            seems quite strange, but the input form with constraints
            works well. I just have an issue with default values.</span></div>
        <div class="x_elementToProof"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)"><br>
          </span></div>
        <div class="x_elementToProof"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)"><img
              size="9162" style="max-width:1866px"
              data-outlook-trace="F:2|T:2"
              src="cid:part1.cMi4ioJV.3yiF4NDv@3liz.com" class=""></span></div>
        <div
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
          <br>
        </div>
        <hr style="display:inline-block; width:98%">
        <div dir="ltr" id="x_divRplyFwdMsg"><span
style="font-family:Calibri,sans-serif; font-size:11pt; color:rgb(0,0,0)"><b>Da:</b> Lizmap
            <a class="moz-txt-link-rfc2396E" href="mailto:lizmap-bounces@lists.osgeo.org"><lizmap-bounces@lists.osgeo.org></a> per conto di Ludovico
            Frate via Lizmap <a class="moz-txt-link-rfc2396E" href="mailto:lizmap@lists.osgeo.org"><lizmap@lists.osgeo.org></a><br>
            <b>Inviato:</b> martedì 12 marzo 2024 14:38<br>
            <b>A:</b> <a class="moz-txt-link-abbreviated" href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a>
            <a class="moz-txt-link-rfc2396E" href="mailto:lizmap@lists.osgeo.org"><lizmap@lists.osgeo.org></a>; René-Luc Dhont
            <a class="moz-txt-link-rfc2396E" href="mailto:rldhont@gmail.com"><rldhont@gmail.com></a><br>
            <b>Oggetto:</b> [Lizmap] R: R: R: Lizmap Server Plugin</span>
          <div> </div>
        </div>
        <div
style="direction:ltr; font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
          Still not working with now() used as default value.</div>
        <div
style="direction:ltr; font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
          <br>
        </div>
        <hr style="direction:ltr; display:inline-block; width:98%">
        <div id="x_x_divRplyFwdMsg" dir="ltr"><span
style="font-family:Calibri,sans-serif; font-size:11pt; color:rgb(0,0,0)"><b>Da:</b> Lizmap
            <a class="moz-txt-link-rfc2396E" href="mailto:lizmap-bounces@lists.osgeo.org"><lizmap-bounces@lists.osgeo.org></a> per conto di René-Luc
            Dhont via Lizmap <a class="moz-txt-link-rfc2396E" href="mailto:lizmap@lists.osgeo.org"><lizmap@lists.osgeo.org></a><br>
            <b>Inviato:</b> martedì 12 marzo 2024 13:08<br>
            <b>A:</b> <a class="moz-txt-link-abbreviated" href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a>
            <a class="moz-txt-link-rfc2396E" href="mailto:lizmap@lists.osgeo.org"><lizmap@lists.osgeo.org></a><br>
            <b>Oggetto:</b> Re: [Lizmap] R: R: Lizmap Server Plugin</span>
          <div> </div>
        </div>
        <div style="padding-bottom:1px">
          <div style="direction:ltr">Hi,<br>
            <br>
            Instead of `$id` which could mean nothing for server, have
            you try `now()` or something else based on `now()` or a
            project variable ?<br>
            <br>
            René-Luc<br>
            <br>
          </div>
          <div style="direction:ltr">Le 12/03/2024 à 12:42, Ludovico
            Frate via Lizmap a écrit :</div>
          <blockquote>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">Hi,
                I'm testing by inserting a new value.</span></p>
            <div
style="direction:ltr; font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
              <br>
            </div>
            <hr style="direction:ltr; display:inline-block; width:98%">
            <div dir="ltr" id="x_x_x_divRplyFwdMsg"><span
style="font-family:Calibri,sans-serif; font-size:11pt; color:rgb(0,0,0)"><b>Da:</b> Lizmap
                <a href="mailto:lizmap-bounces@lists.osgeo.org"
                  id="OWA64fdd3b1-2b6a-82d2-dad6-78e99e94dcb3"
                  class="x_x_x_moz-txt-link-rfc2396E x_x_OWAAutoLink"
                  moz-do-not-send="true">
                  <lizmap-bounces@lists.osgeo.org></a> per conto
                di Ulisse Cavallini via Lizmap <a
                  href="mailto:lizmap@lists.osgeo.org"
                  id="OWA3e865683-e165-b2de-6f0d-e9e0245e33a6"
                  class="x_x_x_moz-txt-link-rfc2396E x_x_OWAAutoLink"
                  moz-do-not-send="true">
                  <lizmap@lists.osgeo.org></a><br>
                <b>Inviato:</b> martedì 12 marzo 2024 12:34<br>
                <b>A:</b> <a href="mailto:lizmap@lists.osgeo.org"
                  id="OWAd23da9a8-06c5-7b80-4ba7-e73e06969975"
class="x_x_x_moz-txt-link-abbreviated x_x_OWAAutoLink moz-txt-link-freetext"
                  moz-do-not-send="true">lizmap@lists.osgeo.org</a>
                <a href="mailto:lizmap@lists.osgeo.org"
                  id="OWA1770a2ba-85ed-ea04-d614-0813823b4bad"
                  class="x_x_x_moz-txt-link-rfc2396E x_x_OWAAutoLink"
                  moz-do-not-send="true">
                  <lizmap@lists.osgeo.org></a><br>
                <b>Oggetto:</b> Re: [Lizmap] R: Lizmap Server Plugin</span>
              <div> </div>
            </div>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px">Hi!</p>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px">Are
              you testing this with an update on a saved feature, or
              with an insert?</p>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px">As
              far as I know, default values in Lizmap currently work
              only when inserting a new feature. They are not taken into
              account when updating an existing one.</p>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px"><br>
            </p>
            <p style="direction:ltr; margin-top:0px; margin-bottom:0px"><br>
            </p>
            <div style="direction:ltr">On 3/12/24 12:27, Ludovico Frate
              via Lizmap wrote:</div>
            <blockquote>
              <div style="direction:ltr"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">UPDATE:
                  I've upgraded the Lizmap version to 3.5.13, and now I
                  can see the plugin correctly installed.. However, even
                  if I use a simple expression in the form widget as the
                  default value (for example $id), it is not recognized
                  by Lizmap.</span></div>
              <div
style="direction:ltr; font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
                <br>
              </div>
              <div style="direction:ltr"><span
style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)"><img
                    style="max-width:1866px"
                    data-outlook-trace="F:5|T:5"
                    src="cid:part2.jqBuv5cd.s5bNcXVD@3liz.com" class=""></span></div>
              <hr style="direction:ltr; display:inline-block; width:98%">
              <div dir="ltr" id="x_x_x_x_divRplyFwdMsg"><span
style="font-family:Calibri,sans-serif; font-size:11pt; color:rgb(0,0,0)"><b>Da:</b> Ludovico
                  Frate
                  <a href="mailto:ludovicofrate@hotmail.it"
                    id="OWA5398a37a-e8ff-4674-801e-5fa9ee808357"
class="x_x_x_x_moz-txt-link-rfc2396E x_x_OWAAutoLink"
                    moz-do-not-send="true">
                    <ludovicofrate@hotmail.it></a><br>
                  <b>Inviato:</b> lunedì 11 marzo 2024 21:34<br>
                  <b>A:</b> <a href="mailto:lizmap@lists.osgeo.org"
                    id="OWA7e8b448a-e81c-6185-998f-e4b00636009f"
class="x_x_x_x_moz-txt-link-abbreviated x_x_x_moz-txt-link-freetext x_x_OWAAutoLink moz-txt-link-freetext"
                    moz-do-not-send="true">
                    lizmap@lists.osgeo.org</a> <a
                    href="mailto:lizmap@lists.osgeo.org"
                    id="OWAfc0e5d1b-b8f5-0251-4c52-7fd34ccad613"
class="x_x_x_x_moz-txt-link-rfc2396E x_x_OWAAutoLink"
                    moz-do-not-send="true">
                    <lizmap@lists.osgeo.org></a><br>
                  <b>Oggetto:</b> Lizmap Server Plugin</span>
                <div> </div>
              </div>
              <p
                style="direction:ltr; margin-top:0px; margin-bottom:0px">Hi,
                I have an old installation of Lizmap (v. 3.4.7) on an
                Ubuntu server with QGIS Server 3.16. I managed my
                project with QGIS 3.16 and everything works fine. In
                order to use default values in the widget form, I
                manually installed the Lizmap server plugin, but it
                seems not to be working. Default values used in the
                widget do not appear in editing mode.</p>
              <p
                style="direction:ltr; margin-top:0px; margin-bottom:0px">I
                installed the plugin in the
                /usr/share/qgis/python/plugins directory and I've set
                the permissions to www-data:www-data for the
                Lizmap_server folder. I've also defined the
                environmental variable in the qgis-server configuration
                file. I've already installed the wfsOutputExtension in
                the same way without any problems (the plugin works
                fine). Any ideas?</p>
              <div style="direction:ltr"><br>
              </div>
              <fieldset class="x_x_x_x_moz-mime-attachment-header"></fieldset>
              <pre><div style="direction:ltr">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org"
              id="OWA35a67d9d-a7ed-d5dd-1a30-f8a3fa9abfba"
class="x_x_x_x_moz-txt-link-abbreviated x_x_x_moz-txt-link-freetext x_x_OWAAutoLink moz-txt-link-freetext"
              moz-do-not-send="true">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap"
              id="OWA69a819a7-93e1-a77b-efbd-bb7393f0d68d"
class="x_x_x_x_moz-txt-link-freetext x_x_x_moz-txt-link-freetext x_x_OWAAutoLink moz-txt-link-freetext"
              data-auth="NotApplicable" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
            </blockquote>
            <pre><div style="direction:ltr">-- 
Ulisse Cavallini
<a href="http://www.faunalia.eu"
            id="OWA38abcc3f-4697-49d6-1270-89cd2d72a400"
            class="x_x_x_x_moz-txt-link-abbreviated x_x_OWAAutoLink"
            data-auth="NotApplicable" moz-do-not-send="true">www.faunalia.eu</a>
Training, support, development on QGIS, PostGIS and more</div></pre>
            <div style="direction:ltr"><br>
            </div>
            <fieldset class="x_x_x_moz-mime-attachment-header"></fieldset>
            <pre><div style="direction:ltr">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org"
            id="OWA80e6bea1-8e57-b2b3-f8bb-9da371efd198"
class="x_x_x_moz-txt-link-abbreviated x_x_OWAAutoLink moz-txt-link-freetext"
            moz-do-not-send="true">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap"
            id="OWAc46cbf2d-458a-5ae4-5b37-c3e1370effdd"
class="x_x_x_moz-txt-link-freetext x_x_OWAAutoLink moz-txt-link-freetext"
            data-auth="NotApplicable" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
          </blockquote>
          <div style="direction:ltr"><br>
          </div>
          <div id="x_x_x_grammalecte_menu_main_button_shadow_host"
            style="width:0px; height:0px">
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Lizmap mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lizmap@lists.osgeo.org">Lizmap@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/lizmap">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <p> <span style="font-weight:bold;color:#9ACD32;">Etienne
          Trimaille</span> <br>
        Géomaticien <br>
        <a href="http://www.3liz.com"
          style="text-decoration: none; color: #9ACD32;">www.3liz.com</a>
        <br>
        <span style="font-size:0.8em;"> <br>
          <b>Tel.</b> 06 12 93 11 39 <br>
          <b>Bureau</b> <br>
          31, rue de l'Argenterie <br>
          34000 Montpellier <br>
          <b>Siège social</b> <br>
          73, allée Kleber <br>
          Boulevard de Strasbourg <br>
          34000 Montpellier </span>
      </p>
      <p><br>
      </p>
    </div>
    <div id="grammalecte_menu_main_button_shadow_host"
      style="width: 0px; height: 0px;"></div>
  </body>
  <lt-container></lt-container>
</html>