Project

General

Profile

Actions

Bug #87353

closed

Ext. FORM: Radio-Buttons with "defaultValue" doesn't work properly

Added by Kurt Kunig over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-01-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
form, radio, defaultValue
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

Description

Create a new from and put a radio-item in.
Add 2 values e.g. and put in:
1. Label = "Yes" - press tab and the label content will be inserted into the value-field: also "Yes" => Click "selected"
2. Label = "No" - press tab and the label content will be inserted into the value-field: also "No"

SAVE!

In the FE you can see that NOT "Yes" is preselected but "No" although the "defaultValue" contains 'Yes'

It only works with numeric items in the value-field!???

That's not correct, is it?


Files

be-no.png (5.81 KB) be-no.png Ralf Zimmermann, 2019-01-31 23:44
fe-no.png (6.3 KB) fe-no.png Ralf Zimmermann, 2019-01-31 23:44
fe-yes.png (6.52 KB) fe-yes.png Ralf Zimmermann, 2019-01-31 23:44
be-yes.png (5.9 KB) be-yes.png Ralf Zimmermann, 2019-01-31 23:44

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #88240: ext:form "Inspector-PropertyGridEditor" does not evaluate defaultValue in all scenariosClosed2019-04-28

Actions

Updated by Ralf Zimmermann about 5 years ago

I can not reproduce your issue.

"Yes" selection:

        type: RadioButton
        identifier: radiobutton-1
        label: 'Radio button'
        defaultValue: 'Yes'
        properties:
          options:
            'Yes': 'Yes'
            'No': 'No'

"No" selection:

        type: RadioButton
        identifier: radiobutton-1
        label: 'Radio button'
        defaultValue: 'No'
        properties:
          options:
            'Yes': 'Yes'
            'No': 'No'

Did you clear the cache after your changes?

Actions #2

Updated by Kurt Kunig about 5 years ago

In my case:

properties:
options:
Telefon: Telefon
Brief: Brief
E-Mail: E-Mail
type: RadioButton
identifier: kontaktPer
label: 'Kontakt bitte per'
defaultValue: E-Mail
-

There are always the last items set!? Doesn't matter what is in the "defaultValue"!?

Actions #3

Updated by Björn Jacob about 5 years ago

  • Sprint Focus set to Remote Sprint
Actions #4

Updated by Michael Waack almost 5 years ago

Can not reproduce

Actions #5

Updated by Dominik M almost 5 years ago

I can not reproduce it

Actions #6

Updated by Björn Jacob almost 5 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Three people tested it on current master and v9. We cannot reproduce the problem. Therefore, I am closing the issue. If you think, this is the wrong decision, please open a new issue and provide us with additional information.

Actions #7

Updated by Ralf Zimmermann almost 5 years ago

  • Related to Bug #88240: ext:form "Inspector-PropertyGridEditor" does not evaluate defaultValue in all scenarios added
Actions

Also available in: Atom PDF