I am using QGIS 3.28.5, I installed qgis2web 3.16.0. I created an interactive web map and I included pop-ups. However, I have some fields in the attribute table that are empty (there is no data). Those fields still show up in the pop-up, as shown below.
Once you export the map, there is this html file that you can edit. I edited it and there are no empty fields anymore HOWEVER you can do that only AFTER you exported the map. I want to make those changes BEFORE I create the map because I want to apply those changes to future projects too.
Does anyone have any idea how can I achieve this?
I tried by making changes in the qgis2web.js file but nothing seems to work.
This is how I manually made the changes. I just modified this part of the code for EVERY attribute. And it works just fine. This file is actually the HTML output. The file that you open in your browser to see the map.