No Code Attached Yet
avatar micker
micker
15 Dec 2021

Steps to reproduce the issue

create a subform in xml
adding yes no field with switcher layout
set switcher on yes => that display no

Expected result

image

Actual result

image

that me or you can reproduce it ?

avatar micker micker - open - 15 Dec 2021
avatar joomla-cms-bot joomla-cms-bot - change - 15 Dec 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Dec 2021
avatar brianteeman
brianteeman - comment - 15 Dec 2021

Shouldnt the xml be
option value=0
option value=1

avatar richard67
richard67 - comment - 15 Dec 2021

Shouldnt the xml be
option value=0
option value=1

I think so, too.

avatar micker
micker - comment - 15 Dec 2021

hi, if i remove "" arrounf number =>
image
outside subform switcher is display correct with the code

avatar Fedik
Fedik - comment - 15 Dec 2021

@micker options order, not "
you have Yes first because value=1 is first

avatar Fedik
Fedik - comment - 15 Dec 2021

ah well, no, there is also default="1"
something strange

avatar micker
micker - comment - 15 Dec 2021

ahhh soo simple if i change order its works but not very local not ?

avatar Fedik
Fedik - comment - 15 Dec 2021

you have to test, I cannot say ;)

avatar micker
micker - comment - 15 Dec 2021
<option value="0">JNO</option>
<option value="1">JYES</option>

working in suborm, outside order havn't any effect its always good, in subform need to be carefull

avatar Quy
Quy - comment - 15 Dec 2021

working in suborm, outside order havn't any effect its always good, in subform need to be carefull

The behavior/order is the same in subform as outside of subform. Please close as this is not an issue.

<field
name="ip_logging"
type="radio"
label="COM_ACTIONLOGS_IP_LOGGING_LABEL"
layout="joomla.form.field.radio.switcher"
default="0"
filter="integer"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

avatar Quy Quy - change - 16 Dec 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-12-16 22:08:40
Closed_By Quy
avatar Quy Quy - close - 16 Dec 2021

Add a Comment

Login with GitHub to post a comment