Navigation

 ·   Wiki Home
 ·   Wiki Hilfe (englisch)
 ·   Kategorien
 ·   Titel-Liste
 ·   Zufalls-Seite
 ·   Datei hochladen
 ·   Hochgeladene Dateien
 ·   Letzte Änderungen
 ·   RSS
 ·   Atom

Aktive Mitglieder:

Suchen:

 

Seite erstellen oder finden:

 

Ansehen Formulare mit E Mailadresse als Dropdown

Im Mailformular soll ein Dropdownmenü angeboten werden, mit dessen Hilfe die Zieladresse ausgewählt werden kann. Umsetzung mit der Extension Mailformplus

Im Template:

<select name="to">
    <
option value="eins" ###checked_to_eins###>Eins</option>
    
<option value="zwei" ###checked_to_zwei###>Zwei</option>
    
<option value="drei" ###checked_to_drei###>Drei</option>
</select>

Im TypoScript:

plugin.tx_thmailformplus_pi1.default.contact_to = TEXT
plugin
.tx_thmailformplus_pi1.default.contact_to.data = GPvar:to
plugin
.tx_thmailformplus_pi1.default.contact_to.wrap = |

[globalVar = GP:to=eins]
plugin
.tx_thmailformplus_pi1.default.email_to = eins@e-mail.de
[end]
[globalVar
= GP:to=zwei]
plugin
.tx_thmailformplus_pi1.default.email_to = zwei@e-mail.de
[end]
[globalVar
= GP:to=drei]
plugin
.tx_thmailformplus_pi1.default.email_to = drei@e-mail.de
[end]

Quelle: Deutschsprachige Mailingliste; Beitrag von Fabian Seltmann.

Category:Typo3 -> Formulare
Category:Typo3 -> Extensions

Kategorien: