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?

1
  • 1
    How does your label format tab look like? Where did you enter the expression?
    – Erik
    Commented Oct 14, 2020 at 11:32

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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