Zum Inhalt springen

Formhandler Condition

Erstellt am 26. Juli 2011 · Noch keine Antworten

Tags: Frage

Unbekannter Benutzer ·

Hallo zusammen.

Habe zwei Radiobuttons im Fomrhandler Formular, diese sind Pflichtfelder.
Wenn einer der Radiobuttons geklickt wird, wird eine Textbox angezeigt.
Nun möchte ich, das diese Textbox auch als Pflichtfeld behandelt wird, aber nur wenn ein gewisser Radiobutton aktiv ist.

<input type="radio" id="toleranz_automatic" name="formhandler[article_toleranz]" onclick="inactive(this,'article_toleranz_inhalt');" value="###LLL:article_automatic###" ###checked_article_toleranz_###LLL:article_automatic######/>###LLL:article_automatic###

<input type="radio" id="toleranz_manuell" name="formhandler[article_toleranz]"  onclick="active(this,'article_toleranz_inhalt');" value="###LLL:article_manuell###"  ###checked_article_toleranz_###LLL:article_manuell######/>###LLL:article_manuell_toleranz###

<input type="text" name="formhandler[article_toleranz_inhalt]" onclick="doit('toleranz_manuell');" value="###value_article_toleranz_inhalt###" id="article_toleranz_inhalt" />

Und hier die Condition:

    if {
    	1 {
    		conditions {
     
    			OR1.AND1 = article_toleranz!=###LLL:article_automatic###
     
    		} 
        isTrue {
     
    			validators.1.config.disableErrorCheckFields = article_toleranz_inhalt
     
    		}
    	}
    }