[SOLVED] Template question

Moderator: crythias

Locked
ppreininger
Znuny newbie
Posts: 12
Joined: 20 Jun 2024, 10:21
Znuny Version: Znuny LTS
Real Name: Peter Preininger

[SOLVED] Template question

Post by ppreininger »

Hi,
I have the following problem: I have a transition action, that sends an E-Mail. A template is used for this. I want to add a textblock based on the content of a dynamic field (instead of using different templates).

E.g.

The content should be

Texblock1 when content of DynamicFieldSelector is 1
Texblock2 whencontent of DynamicFieldSelector is 2
Texblock3 content of when DynamicFieldSelector is 3

Is this basically possible or do I have to use multiple templates?

Thank you for helping out
Last edited by ppreininger on 03 Sep 2024, 12:00, edited 1 time in total.
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Template question

Post by zzz »

Hey,

That is not possible without custom development. Templates don't allow if conditions.

Best
Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
Locked