Bug #64323
closedArgument "displayCond" not work into other "flux:form.sheet"
0%
Description
I have code:
[...] <flux:form.sheet name="options1"> <flux:field.checkbox name="checkbox1" default="1" requestUpdate="TRUE" /> <flux:field.checkbox name="checkbox2" default="0" displayCond="FIELD:checkbox1:=:1" /> </flux:form.sheet> <flux:form.sheet name="options2"> <flux:field.input name="input1" displayCond="FIELD:checkbox1:=:1" /> <flux:field.input name="input2" /> </flux:form.sheet> [...]
Argument "displayCond" for field ""options2" -> "input1" not work into other group fields ""options1" -> "checkbox1""
What is that, error or ...???
Updated by Sven Burkert about 9 years ago
I think this is a bug of extension flux / fluidcontent.
Perhaps you should post this error here: https://github.com/FluidTYPO3/flux/issues
Sorry, I understand now, you have been asked by the FluidTYPO3 team to post this bug here (see https://github.com/FluidTYPO3/flux/issues/732)
Updated by Claus Due about 9 years ago
- Category changed from Fluid to FormEngine aka TCEforms
Absolutely not related to Fluid in any way. I'm not sure that FormEngine is the correct category either so please forgive if that's incorrect.
Updated by Morton Jonuschat almost 9 years ago
- Status changed from New to Closed
This is the intended behavior. DisplayCond in FlexForm has two "levels". If you use a displayCond to decide wether a whole sheet should be shown/hidden then you have access to the values of all sheets using FIELD:sheetName.fieldName, if you use displayCond on on a field you only have access to the fields on that sheet (plus the database fields with parentRec.fieldName).
Your example tries to access the field "checkbox1" from sheet "options1" within the sheet "options2", which is why it's not working.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.