Personalize popup with a condition ( IF )

Dear all,

I would like to personalize popup in lizmap depending on a specific field in attribute table.
As example in field1 have a value equal to 1 then in popup I would see the content of field2.

Thanks for your support

Using the tooltip of your layer in QGIS you can add custom expression like this :

[%  if( field1=1, field2, 'other content) %]

Then in the lizmap QGIS extension you must specify HTML Popup

More information in the documentation.

I guess you mean “HTML Maptip” :wink:
Just in case, to not get confused with “Lizmap Popup”, which is deprecated.