https://bugzilla.wikimedia.org/show_bug.cgi?id=24113

           Summary: Values= does not seem to work with show on select
                    functionality
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Hi.

I'm running MW 1.15.3, SMW 1.5.1.1 and SF 1.9.1.

When I use values= in conjunction with the show on select functionality of
Semantic forms, it doesn't seem to be saving the property value.

For example.

I have in my form:
<b>Please select an ethnic group and then tick the category that best fits your
ethnic origin.</b>
{| class="formtable"
! Ethnic Group:
|{{{field|Ethnic Origin Group|default=Not Disclosed|show on
select=White=>white;Black or Black
British=>black;Mixed=>mixed;Chinese=>chinese;Asian or Asian
British=>asian;Other=>other}}}
|}
<div id="white">
{| class="formtable"
! Choose:
| {{{field|Origin|values=British,Irish,Any other White origin}}}
|}
</div>
<div id="black">
{| class="formtable"
! Choose:
| {{{field|Origin|values=Caribbean,African,Any other Black origin}}}
|}
</div>
<div id="asian">
{| class="formtable"
! Choose:
| {{{field|Origin|values=Indian,Pakistani,Bangladeshi,Any other Asian origin}}}
|}
</div>

and in my template:
! Ethnic Origin
| [[Ethnic Origin::{{{Origin|}}}]]

In the form the show on select works and the specified values are displayed.
e.g. if I select White, I then get a drop down with British, Irish and Any
other White origin. I can then pick on of the values.

However, when I save, the selected value does not appear in the template and is
not assigned to the property. If I then edit with form again the selection is
not set. All properties are of type string.

Is this a bug?

Thanks
Neill.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to