<div dir="ltr">I'm trying to recreate the functionality from the "form value relation" plugin that was available in QGIS 2.x using the "current_value" function together with the "value relation" widget in QGIS 3.2.2. This is done using 3 tabels - all WFS based. <div><br><div>* "points_table" containing fields "mec" and "ec" fields (data table)</div><div><br></div><div>* "m_elements" table containing field "mec" (lookup table no 1)</div><div><br></div><div>* "elements" table containing "mec" and "ec". The "mec" field has foreign key constraint to table "m_elements" in the database dataprovider for the wfs. (lookup table no 2)</div><div><br></div><div><br></div><div>The "mec" field in the "points_table" has a "value relation" widget using table "m_elements" and field "mec" as lookups. This works..</div><div>   </div><div>The "ec" field in "points_table" has a  has a "value relation" widget using table "elements" and field "ec" as lookup - and a filter expression like this: "mec" = current_value('mec')</div><div><br>This dosn't work. There are no candidates in the widget drop-down even if the "mec" field has a value . </div><div><br></div><div>If I remove the filter expression all the possible candinates from table "elements" are present in the widget drop-down.</div><div><br></div><div>Is the current_value function working at all?  Can the error be related to the use of wfs ??</div><div><br></div><div><br></div><div><div><br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Kind regards<div><br></div><div>Bo Victor Thomsen</div><div><br></div></div></div></div></div></div>