-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value relation dropdown does not autofill #5566
Comments
@cruelaid , a small sample project would help. |
demo.zip |
It seems to boil down to QGIS and QField having inconsistent default behaviour. In QGIS you need to set 'Allow NULL value' to emulate the same behaviour as QField, i.e., not pre-populating with the first entry in the list of values. But it's harder to do it vice versa (have QField auto populate the first value in the drop down list). Personally I prefer QField's default behaviour (default value is NULL unless specified in default value expression, or repeating from previous feature), as it's better for data validation in the field, and think QGIS should change instead, but given how long it's been this way in QGIS it might not be practical... |
Describe the issue
During feature creation in QGIS, value relation widgets will automatically populate with a value that satisfies the filter expression. This autofill works even when the default value expression is left blank. This functionality is not preserved in QField, which will only autofill a value when a default value is specified.
Reproduction steps
Steps to reproduce the behavior:
Expected behavior
Both QField and QGIS should autofill the value relation field with the same appropriate value
Observed behavior
QGIS autofills the field, but QField leaves it NULL.
Desktop (please complete the following information)
Mobile (please complete the following information)
Additional information
The text was updated successfully, but these errors were encountered: