[TYPO3-german] Formhandler - Bei Fehler in Validierung geht ein selektierter Eintrag aus einer DropDown-Liste verloren

Reinhard Führicht fuehricht at gmx.at
Fri Jan 25 08:54:45 CET 2013


Hallo Johannes,

Am 23.01.2013 19:12, schrieb JCL - Johannes C. Laxander:
>
> Hallo,
>
> Ich habe folgendes Template:
>
> <!-- ###master_toerntyp### -->
> ###error_toerntyp###
> <div class="ym-fbox-select ###is_error_toerntyp###">
> <label for="toerntyp">###LLL:toerntyp###</label>
> <select id="toerntyp" name="###formValuesPrefix###[toerntyp]" class="select">
> <option value="###LLL:toerntyp.0###" ###selected_toerntyp_###LLL:toerntyp.0######>###LLL:toerntyp.0###</option>
> <option value="###LLL:toerntyp.1###" ###selected_toerntyp_###LLL:toerntyp.1######>###LLL:toerntyp.1###</option>
> <option value="###LLL:toerntyp.2###" ###selected_toerntyp_###LLL:toerntyp.2######>###LLL:toerntyp.2###</option>
> </select>
> ###validate_toerntyp###
> </div>
> <!-- ###master_toerntyp### -->
>
>
> Über den PreProcessor wird ein Default-Wert gesetzt, was auch funktioniert.
>
> Wenn ich im Formular nun den zweiten oder dritten Eintrag auswähle und in der Validierung tritt ein Fehler auf, ist die Auswahl verloren und es wird der erste Eintrag angezeigt. Ohne Fehler wird die Auswahl in die E-Mail übernommen.
>
> Ist in meiner Definition noch ein Fehler?
>
> Gruß, Johannes.
>

ich habe das ausprobiert in einem Testformular.

Bei mir funktioniert alles wunderbar.
Kann es sein, dass die Übersetzungen für toerntyp.0 usw nicht gefunden 
werden? Wie sieht der generierte Quellcode aus?

Viele Grüße,
Reinhard


-- 
--------------------------------
http://www.typo3-formhandler.com
--------------------------------


More information about the TYPO3-german mailing list