I have created my custom form for features editing, using layer.setEditForm("form.ui") and layer.setEditFormInit("init") properties. init method receives dialog, layerId and featId as arguments. Everything works ok, but now I need to get a geometry of a new feature before closing the form.
Is there any way to do it?
Feature id gets assigned to "0" and looks like doesn't exist in the features list before accepting changes.