Developer forum

Forum » PIM » Concat fields with multiple fields per line

Concat fields with multiple fields per line

Michael Knudsen
Reply

Hello forum,

- any concat sharks out there?  I'm strugling with formatting a concat field, so I hope to get some help here.

I have two product category fields, which should result in 4 different outcome in a concat field.

#1: None of the fields are filled-in:
Result: ""

#2: TankWasteWaterNo is filled-in, but TankWasteWaterCapacity is empty:
Result: ""

#3: TankWasteWaterNo is filled-in and TankWasteWaterCapacity is filled-in:
Result: "Spildevandstank: 2 stk. 1.500 l"

#4: TankWasteWaterNo is empty and TankWasteWaterCapacity is filled-in:
Result: "Spildevandstank: 1.500 l"

Currently my concat field looks like:
"Spildevandstank: [{ProductCategory|Toilet|TankWasteWaterNo} stk. ][{ProductCategory|Toilet|TankWasteWaterCapacity} l]"

Currently results:
#1: "Spildevandstank: " (not ok)
#2: "Spildevandstank: 2 stk." (not ok)
#3: "Spildevandstank: 2 stk. 1.500 l" (ok)
#4: "Spildevandstank: 1.500 l" (ok)


Br. Michael Knudsen


Replies

 

You must be logged in to post in the forum