Possible to show text fields as a text blurb in layout space?

71 views
Skip to first unread message

Andrew james

unread,
Sep 10, 2025, 1:27:25 AMSep 10
to QGIS Australia User Group
Hi everyone, 

Thanks for your replies to previous questions. Working in local government here.

Say I have a point .shp file with points that I join to a table with text fields that have notes on the point feature.

Looking in to if it possible to take a field from the attribute table - a text field of 200-300 characters and display it as a text box in layout space, below the map? It would be linked and updated dynamically as the table data changes. 

Or would this be just a long label that is positioned manually?

Hope it makes sense - thanks
Andrew

Emma Hain

unread,
Sep 10, 2025, 1:34:13 AMSep 10
to australian-qg...@googlegroups.com
Hey Andrew

You can create the text box via the HTML source and use the data defined override button to source it from the attribute field. 
 
Kind regards
Em

Emma Hain — Product Manager/Senior GIS Analyst
em...@north-road.com
https://north-road.com North Road
Cartography • Development • Spatial Analysis


north-road.com

FOSS4G 2025
17-23 November, Auckland, New Zealand



--
You received this message because you are subscribed to the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/australian-qgis-user-group/dedda0a2-7d33-47f9-b5bb-832937ba0801n%40googlegroups.com.

Colin Mazengarb

unread,
Sep 10, 2025, 2:05:14 AMSep 10
to australian-qg...@googlegroups.com
Hi Andrew, an alternative to Em’s suggestion is to have a table item that can be one field and based on an expression filter and with word wrapping. That way it will be dynamic. If you want fancy formatting then maybe the html route is better.
Cheers 
Colin 

Sent from my iPad

On 10 Sep 2025, at 7:27 am, Andrew james <andrewfra...@gmail.com> wrote:

Hi everyone, 
--

Andrew james

unread,
Sep 16, 2025, 10:30:45 PM (8 days ago) Sep 16
to QGIS Australia User Group
Hi Em, Colin, 

Thanks for this. 

I can't quite build expressions referencing layers and fields to show in the HTML box. 

QGIS documentation is too general 

- do you have an go-to references/links for this by any chance?

Sorry, newbie with expressions! I do have a handle on intermediate coding though

Thanks
Andrew

Emma Hain

unread,
Sep 17, 2025, 6:20:27 PM (8 days ago) Sep 17
to australian-qg...@googlegroups.com
Hi Andrew
To add a table from your layers to the print composer, have you followed this? 

Whilst not exactly what you are looking for, this may give you an idea of how html labels work:


Kind regards
Em

Emma Hain — Product Manager/Senior GIS Analyst
em...@north-road.com
https://north-road.com North Road
Cartography • Development • Spatial Analysis


north-road.com

FOSS4G 2025
17-23 November, Auckland, New Zealand


Andrew James

unread,
Sep 18, 2025, 5:13:33 AM (7 days ago) Sep 18
to australian-qg...@googlegroups.com
Thanks Emma, I'll give it a crack!
Andrew

You received this message because you are subscribed to a topic in the Google Groups "QGIS Australia User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/australian-qgis-user-group/uTgK-avlNDo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to australian-qgis-use...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/australian-qgis-user-group/CACGKw0Zk5-eaJ8nupaF0yDhc2DaA8E27DM_8p2j%3DvUzk13N24g%40mail.gmail.com.

Colin Mazengarb

unread,
Sep 20, 2025, 11:14:53 AM (5 days ago) Sep 20
to QGIS Australia User Group
Andrew,
My previous suggestion in hindsight was a little cryptic. A fuller explanation:

1 Make a duplicate layer of your shapefile and give it a logical name to distinguish it from the other version of it
2 In the print Lay-out add a table item from the tools using the duplicate shapefile layer.
3 the full attribute  table will show but in the properties you can drop any of the fields to only show the field you are interested in. The field name can be changed or dropped at this point.
4 Now you will need a method to only show the record of interest, such as the last record or today’s date, something that is truly dynamic. One method is to make a filter for the layer in the map canvas. You may also be able to  create an expression in the layout item properties but without access to my computer I can’t remember.
5 If you need help with the filter provide an example of what distinguishing attribute you are wanting to show. 
6 once everything is set up properly then every time you open the project the text will be updated accordingly.

I am hoping this provides a better explanation. Let me know whether this makes sense.
Cheers 
Colin

Andrew James

unread,
Sep 21, 2025, 9:16:00 PM (4 days ago) Sep 21
to australian-qg...@googlegroups.com
Thanks Em,

The links were helpful. 

Noting a couple of things with your North Road article about HTML labels:

  • H1, H2, H3 tags work as well
  • I haven't tested <ul> and <ol> but this would be useful
  • HTML formatting breaks any QGIS user styles. This makes page layout tasks more clunky; more work in design
  • Blank labels are created if any field in a list is NULL; so one needs to go and create some conditional expressions in the midst of that HTML. This is a hassle. 
Thank you though, this is a good way to style labels for us.
Andrew



Colin Mazengarb

unread,
Sep 23, 2025, 12:14:28 PM (2 days ago) Sep 23
to australian-qg...@googlegroups.com, australian-qg...@googlegroups.com
Hi Andrew,
I posted some further information on the QGIS Australia website titled 

Mixed Format Labels for dummies!

You may find this useful as well if you are going down the html route. 

Cheers 
Colin 
Sent from my iPhone

On 22 Sep 2025, at 3:16 am, Andrew James <andrewfra...@gmail.com> wrote:



Andrew James

unread,
Sep 23, 2025, 6:11:34 PM (2 days ago) Sep 23
to australian-qg...@googlegroups.com
Thanks Colin, 
Could you send a link to that please?
I searched and couldn't find it. 
NB, please see my code posted yesterday, using html labels, 

Will follow up your earlier suggestion soon re: tables

Cheers
Andrew

Andrew James

unread,
Sep 23, 2025, 6:12:01 PM (2 days ago) Sep 23
to australian-qg...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages