Verwendung: Textarea erst bei gecheckter Checkbox anzeigen lassen.

Wayne's Avatar

Wayne

09 Mar, 2018 10:40 AM

Produkt: Custom Elements Contao
Contao-Version: 3.5

Hallo zusammen,

ich verzweifle grad an der submitOnChange Funktion.
Ich würde gern die Textarea erst dann sichtbar machen, sobald man die checkbox ausgewählt hat. Leider stehe ich da etwas auf dem Schlauch.

Hier mein Code:

'test_submit' => array ( 'label' => 'Test Check', 'inputType' => 'checkbox', 'eval' => array('submitOnChange'=>true) ), 'test_text' => array( 'label' => array( 'de' => array('Text', 'Text'), ), 'inputType' => 'textarea', 'tl_class' => 'w100', 'eval' => array( 'rte' => 'tinyMCE_Custom' ), ),

Vielen Dank für die Hilfe!

LG
Wayne

  1. 1 Posted by Wayne on 09 Mar, 2018 10:45 AM

    Wayne's Avatar

    Hier nochmal mein Code:

    'test_submit' => array (
        'label' => 'Test Check', 
        'inputType' => 'checkbox', 
        'eval' => array('submitOnChange'=>true) 
    ), 
        
    'test_text' => array( 
        'label' => array( 
            'de' => array('Text', 'Text'),
        ), 
        'inputType' => 'textarea', 
        'tl_class' => 'w100', 
        'eval' => array( 
            'rte' => 'tinyMCE_Custom'
        ),
    ),
    

    Sorry

  2. Support Staff 2 Posted by RockSolid Theme... on 09 Mar, 2018 10:49 AM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Zu diesem Thema gibt es bereits ein Ticket auf GitHub: madeyourday/contao-rocksolid-custom-elements#26

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac