[TYPO3-english] Typo3 Form condition + no mail to be sent

Christoph Holtermann c.holtermann at gmx.de
Wed Dec 5 23:49:03 CET 2012


Dear Patrick Broens,

I want to have some parts of a form just showed on a condition.
I need a checkbox only displayed when a certain user group is
logged in.
I couldn't get conditions like [usergroup = *] to work
neither conditions using if/else.

My Form:
action = post
id = cal_select_form
method = post
title = title
prefix = tx_form
confirmation = 0
postProcessor {
    1 = mail
    1 {
        recipientEmail = c.holtermann at gmx.de
        senderEmail = technik at jungmedizinerforum.org
    }
}
10 = TEXTLINE
10 {
    name = feld
    label {
        value = Startdatum
    }
}
20 = TEXTBLOCK
20 {
    class = content-textblock
    content = Wenn leer: aktuelles Datum oder Enddatum minus 1 Monat
}
30 = TEXTLINE
30 {
    name = enddate
    label {
        value = Enddatum
    }
}
40 = TEXTBLOCK
40 {
    class = content-textblock
    content = Wenn leer: Start- oder aktuelles Datum plus ein Monat
}
60 = CHECKBOXGROUP
60 {
    id = cal_select
        class = fieldset-subgroup
    legend {
        value = Kalender auswählen
    }
    name = cal_selector
    10 = CHECKBOX
    10 {
                value = 3
        label {
            value = Jungmedizinerforum
        }
                checked = 1
    } 
    20 = CHECKBOX
    20 {
                value = 9
        label {
            value = viamedici
        }
    }
    30 = CHECKBOX
    30 {
                value = 8
        label {
            value = GAMÖ
        }
    }
        40 = CHECKBOX
    40 {
                value = 10
        label {
            value = DAMID
        }
    }
}
70 = SUBMIT
70 {
    name = form
    value = Anzeigen
}
rules {
    1 = date
    1 {
        element = feld
        showMessage = 0
        error = TEXT
        error {
            value =
        }
    }
}
60{
        11 = CHECKBOX
    11 {
                value = 11
        label {
            value = Jungmedizinerforum intern
        }
    }
}

the condition should work on 60.11

BTW: I didn't find an other way to have this form not send an email -
I just want to use the POST data - than to make it permanently fail
check. Is there a better way to do so ?

regards,

Christoph Holtermann


More information about the TYPO3-english mailing list