[QGIS-Developer] iface.openFeatureForm() Does Not Populate Form With Defaults

C Hamilton adenaculture at gmail.com
Thu Nov 12 06:34:39 PST 2020


In one of my plugins I call

iface.openFeatureForm(layer, feature_being_added, False)

but it does not pre populate the form with the defaults that are set up in
the Layer properties->Attributes Form->Defaults.

If you use the standard "Add Point feature" the default values are properly
set. Is there something else I need to do with openFeatureForm to get the
default values?

Thanks,

Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201112/1c20343f/attachment.html>


More information about the QGIS-Developer mailing list