<div dir="ltr"><div>Hi Andreas,</div><div><br></div><div>Thank you very much.<br></div><div>This was exactly what I was looking for.<br></div><div>As you said, It requires adding a group. This requires an extra step when you want to control the visibility field by field.<br></div><div>But it works !</div><div><br></div><div>Byt the way, I was looking to do this for using this project with the Input App.<br></div><div>Your solution works as well in Input.</div><div><br></div><div>Thanks again,</div><div><br></div><div>Arnaud<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 11, 2021 at 10:09 AM Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi Arnaud,</p>
<p>You cannot have conditional visibility on a single widget (unless you do it yourself with Python), but you can have conditional visibility on a group based on an expression that can reference the value of another field.</p>
<p>Create a "Group" container in the drag and drop form with the "green plus" icon. Then click on the group, activate the "Control visibility by Expression" and enter your expression. The expression needs to return 1 for visible or 0 for not visible.</p>
<p><img src="cid:179fae1c58317b57ff21"></p>
<p>Hope this helps,</p>
<p>Andreas</p>
<p id="gmail-m_7172812385109190283reply-intro">On 2021-06-11 07:01, Arnaud Vandecasteele wrote:</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="gmail-m_7172812385109190283replybody1">
<div>
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>When creating a form by drag and drop fields, all fields are displayed unless you choose the hidden widget or you remove them from the field.</div>
<div> </div>
<div>But how to hide or show a form field depending on whether the user has completed a previous field?</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Arnaud</div>
<div><br>-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">--------------------------------------------------------------------<br>Arnaud Vandecasteele<br><br><br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div style="margin:0px;padding:0px;font-family:monospace">_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noopener noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noopener noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br></p>

</div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--------------------------------------------------------------------<br>Arnaud Vandecasteele<br><br><br></div></div></div></div>