Bug #87353
closedExt. FORM: Radio-Buttons with "defaultValue" doesn't work properly
100%
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
Updated by Ralf Zimmermann over 5 years ago
- File be-no.png be-no.png added
- File fe-no.png fe-no.png added
- File fe-yes.png fe-yes.png added
- File be-yes.png be-yes.png added
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?
Updated by Kurt Kunig over 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"!?
Updated by Björn Jacob over 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.
Updated by Ralf Zimmermann over 5 years ago
- Related to Bug #88240: ext:form "Inspector-PropertyGridEditor" does not evaluate defaultValue in all scenarios added