4

I would like to change the order of my widgets in the attribute form section.

enter image description here

But after changing the order of columns in the data attribute table, they remain still in the same order in the "Available Widgets" section. Thereby, their order cannot be changed when exporting the given layer with the QGIS2web plugin.

enter image description here

Both links:

As well as changing the "Autogenerate" to "drag & drop designer" don't solve this problem, showing how to fill them up, on the contrary.

Is there any way to change the order of fields in the "Available widgets" section?

2
7

QGIS2web uses fields() method of QgsVectorLayer class to get the fields, and that method uses fields order of the data provider. I mean, it retrieves the fields as in the data source. Therefore, changing the field order in QGIS has no effect.

One solution I can recommend to you is to use "Refactor Fields" tool. Using this tool, you can create a new layer with altered field order.

enter image description here

Before (in QGIS2web):

enter image description here

After:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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