---
title: "Mailformplus - globalVar = GP"
url: "https://www.typo3.net/d/92891-mailformplus-globalvar-gp"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2009-09-14"
last_reply: "2009-09-15"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Mailformplus - globalVar = GP

Extensions · 2 Antworten · gestartet 2009-09-14

## Eröffnungsbeitrag

**dorf** · 2009-09-14 · [Beitrag #1](https://www.typo3.net/d/92891-mailformplus-globalvar-gp/1)

Hallo,

bei Mailformplus kann ich ja mit globalVar = GP:rueckruf = Ja, ein anderes Ferld als Pflichtfeld setzen.

Wie kann ich abfragen das wenn ein Feld nicht leer ist (!=), andere Felder als Pflichtfeld gesetzt werden.

z.B.

Ich hab ein Bestellformular mit für 2 Bestellungen.

Produkt1, Menge1, Farbe1
Produkt2, Menge2, Farbe2

Wenn jetzt jemand was in Produkt1 eingibt aber vergißt Menge1 und Farbe1 zu füllen soll ein Hinweis kommen.

Gruß dorf

## Antworten

### [#2](https://www.typo3.net/d/92891-mailformplus-globalvar-gp/2) · gmf · 2009-09-14

Du kannst deine Condition anders herum angehen und abfragen ob die Werte leer sind:

```typoscript
[globalVar=GP:test=] && [globalVar=GP:test1=]
page.30 = TEXT
page.30.value = CONDITION
[global]

[globalVar=GP:test=] || [globalVar=GP:test1=]
page.30 = TEXT
page.30.value = CONDITION2
[global]
```

### [#3](https://www.typo3.net/d/92891-mailformplus-globalvar-gp/3) · dorf · 2009-09-15

Hatte ich auch schon probiert, aber wenn ich mehr als zwei globals setzt gehts irgendwie net.

```typoscript
plugin.tx_thmailformplus_pi1.fieldConf.verstart1.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verend1.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verstart2.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verend2.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verstart3.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verend3.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verstart4.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verend4.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verstart5.errorCheck = notDefaultValue
plugin.tx_thmailformplus_pi1.fieldConf.verend5.errorCheck = notDefaultValue

[globalVar=GP:technik5=]
plugin.tx_thmailformplus_pi1.disableErrorCheckFields = verstart5,verend5
[global]

[globalVar=GP:technik1=] && [globalVar=GP:technik2=] && [globalVar=GP:technik3=] && [globalVar=GP:technik4=] && [globalVar=GP:technik5=]
plugin.tx_thmailformplus_pi1.disableErrorCheckFields = verstart1,verend1,verstart2,verend2,verstart3,verend3,verstart4,verend4,verstart5,verend5
[global]

[globalVar=GP:technik2=] && [globalVar=GP:technik3=] && [globalVar=GP:technik4=] && [globalVar=GP:technik5=]
plugin.tx_thmailformplus_pi1.disableErrorCheckFields = verstart2,verend2,verstart3,verend3,verstart4,verend4,verstart5,verend5
[global]

[globalVar=GP:technik3=] && [globalVar=GP:technik4=] && [globalVar=GP:technik5=]
plugin.tx_thmailformplus_pi1.disableErrorCheckFields = verstart3,verend3,verstart4,verend4,verstart5,verend5
[global]

[globalVar=GP:technik4=] && [globalVar=GP:technik5=]
plugin.tx_thmailformplus_pi1.disableErrorCheckFields = verstart4,verend4,verstart5,verend5
[global]
```

---

Quelle: „Mailformplus - globalVar = GP“, typo3.net, https://www.typo3.net/d/92891-mailformplus-globalvar-gp
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
