<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi list - </p>
<p>In QGIS ver. 3.38 and prior versions - using a "Value Relation"
widget in a attribute form - you could change the behavior of the
drop-down value list in the widget by checking/unchecking the
"Allow NULL value" checkbox:</p>
<ul>
<li>If "Allow NULL value" was checked, the chosen value would be
"blank"/not chosen. </li>
<li>If "Allow NULL value" was <i>not </i>checked, the chosen
value would be set to the first value in the value list. </li>
</ul>
<p>So you could decide if the field automatically got a value from
the drop-down list without any manual user action.</p>
<p><i>However,</i> in QGIS version 3.40 and onward, this behavior
has changed. Regardless of the state of the "Allow NULL value"
checkbox the initial value of the widget is always "blank"/not
chosen. <br>
</p>
<p>Is this the new expected behavior or is it a regression bug ? And
if it is the expected behavior: Can you somehow enable the old
behavior ??</p>
<p>I have many (many, many...) QGIS projects depending on the old
behavior. <br>
</p>
<p> -- <br>
</p>
<pre class="moz-signature" cols="72">Med venlig hilsen / Best regards
Bo Victor Thomsen</pre>
</body>
</html>