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
Du kannst deine Condition anders herum angehen und abfragen ob die Werte leer sind:
[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]
Hatte ich auch schon probiert, aber wenn ich mehr als zwei globals setzt gehts irgendwie net.
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]