Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've done this many times in ArcGIS and ArcPad but I don't even know where to start building a custom form for data entry in QGIS. I would like to do this for field operations--QGIS would make a good field tool with a little customization

share|improve this question
add comment

1 Answer 1

Easy as pie.

http://woostuff.wordpress.com/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/

Basically you create a form with controls that are the same name as your fields that you want to bind the values to, QGIS will take care of the rest.

Also: If you want QGIS to auto map the controls in your custom form correctly you have to set the fields control type in the Field settings of the layar e.g if you have a combo box call TYPE and you want it to fill the combo box with values you already have in the layer you have to set the Field Edit Edit to Unique Values

Edit: Just made another blog post explaining the binding a bit more http://woostuff.wordpress.com/2012/03/30/custom-qgis-feature-forms-value-binding/

enter image description here

share|improve this answer
    
Excellent walk-through, thanks for sharing. –  SaultDon Mar 29 '12 at 1:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.