QGIS+QFIELD+Forms

Hello, my name is Cesar. I’m currently migrating from ArcGIS Pro and Field Maps + Survey123 to QGIS and QField. I’m developing forms for field data collection, and I’m a beginner in form development. I have a problem trying to auto-fill one question based on another. The current_value function doesn’t work for me, so I’m using attribute($currentfeature, ...) instead. The issue is that the question I’m using to condition the second one (which is giving me trouble) is based on a nested table, and the function that works is returning the ID of the table, not its code. I appreciate any comments in advance. I’m new to this software, but I really like the freedom it offers.

my QGIS version is 3.40.8

Cesar,
Glad to have you in the community! You are diving a bit beyond my expertise, but I did spot this blog post, https://woostuff.wordpress.com/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/ , which might give you some tips.
Doug

On Tue, Jul 8, 2025 at 11:00 PM Cesar Aguilera via OSGeo Discourse <noreply@discourse.osgeo.org> wrote:

Caguilera91
July 9

Hello, my name is Cesar. I’m currently migrating from ArcGIS Pro and Field Maps + Survey123 to QGIS and QField. I’m developing forms for field data collection, and I’m a beginner in form development. I have a problem trying to auto-fill one question based on another. The current_value function doesn’t work for me, so I’m using attribute($currentfeature, ...) instead. The issue is that the question I’m using to condition the second one (which is giving me trouble) is based on a nested table, and the function that works is returning the ID of the table, not its code. I appreciate any comments in advance. I’m new to this software, but I really like the freedom it offers.

my QGIS version is 3.40.8


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

1 Like

Hi Doug, thanks so much for taking your time to respond to this, I’ll check it out and let you know my comments.

regards

You may want to take a look at Value Relation in the Attributes Form part of QGIS. You can set that up with your data and it should transfer over to QField.

https://www.northrivergeographic.com/qgis-3-2-drive-down-lists-aka-value-relation-widget/

Randy

1 Like