You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2025-03-19 14:31:06

dillhappen
Member
From: Germany
Registered: 2025-03-19
Posts: 5

Form Creator - validation and target template if-else conditions

Hello,

I'm currently trying to implement a few processes with the form creator plugin.
I created a form for orders, which creates a ticket. The order has to be approved by the users manager, before the IT department is supposed to act on it.
Now I'm struggeling with two things:
1. The validation is started through a business rule, which just checks the source and other criteria to send an approval to the requesters manager. I couldn't find a way through form creator, to dynamically select the users manager for approval. Is there a way to start the approval through form creator (before creating the ticket)?

2. I'm trying to customize the ticket target, depending on values supplied by the form. I tried to use if / else conditions similar to the notification templates (see below) but it doesn't work.
Is there a way to use if / else conditions in the target ticket description?

##IFanswer_63=Nein##

Bezeichnung    Anzahl    Einzelpreis in €
##answer_38##    ##answer_40##    ##answer_41##
##answer_43##    ##answer_44##    ##answer_45##
##answer_46##    ##answer_47##    ##answer_48##
##answer_49##    ##answer_50##    ##answer_51##
##answer_52##    ##answer_53##    ##answer_54##

##ENDIFanswer_63####ELSEanswer_63##

##answer_17##

##ENDELSEanswer_63##

Thank you for your help!

Last edited by dillhappen (2025-03-19 14:32:24)

Offline

Board footer

Powered by FluxBB