Project

General

Profile

Actions

Bug #70502

closed

EXT:form - selected attribute not rendered

Added by Björn Jacob over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-10-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Setting up the following form:


enctype = multipart/form-data
method = post
novalidate = novalidate
prefix = tx_form
confirmation = 1
postProcessor {
    1 = mail
    1 {
        recipientEmail = your@email.com
        senderEmail = your@email.com
    }
}
10 = TEXTLINE
10 {
    autofocus = autofocus
    name = surname
    placeholder = Surname
    label {
        value = Surname
    }
}
20 = CHECKBOX
20 {
    checked = checked
    name = checkbox1
    value = checkbox2
    label {
        value = Checkbox1
    }
}
30 = SELECT
30 {
    multiple = multiple
    name = select1
    label {
        value = Select
    }
    10 = OPTION
    10 {
        data = Option 1
        selected = selected
        value = Value1
    }
    20 = OPTION
    20 {
        data = Option 2
        value = Value2
    }
    30 = OPTION
    30 {
        data = Option 3
        selected = selected
        value = Value3
    }
}
40 = SUBMIT
40 {
    name = 5
    type = submit
    value = Submit form
}

The form adds a SELECT element with 3 options where 2 of them should be selected by default. Viewing the form in the frontend the selected attribute(s) are not rendered. It does not matter if only one or more options should be selected. The attribute multiple is not a problem. It happens in any case.

Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44394

Actions #2

Updated by Björn Jacob over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Ralf Zimmermann over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF