2

I want to set the text wrap for the one label only.

I prepared formula such this:

  CASE
  when "fid" = 12 then wordwrap (6)
  End

based on the thread here:

Labeling using 'wordwrap' and 'wrap on character' with mutiple fields in QGIS?

it doesn't work unfortunately.

I also made another attempt

    wordwrap(%Pschool%, 13)

It didn't work either. It was from the other thread below:

Creating multiline labels in QGIS

enter image description here

How can I set the text wrap for an individual record?

Geographos
  • 4,087
  • 2
  • 27
  • 88

1 Answers1

4

The correct syntax is:

CASE
when "fid" = 12 then 6
End

No need for wordwrap, because data defined override here expects an integer input. You can see this on mousehover:

enter image description here

MrXsquared
  • 34,292
  • 21
  • 67
  • 117