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

           Summary: Show on select functionality stops mandatory field
                    checking working.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Hi.

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

If I add show on select functionality to my forms then the mandatory field
checking stops working. The form can be saved even if any of the specified
mandatory fields are not filled in. For example:

{| class="formtable"
! Title:
| {{{field|Title}}}
|-
! First Name:
| {{{field|First Name|mandatory}}}
|-
! Surname:
| {{{field|Surname|mandatory}}}
|}

{| class="formtable"
! Ethnic Origin:
| | {{{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"
!
| {{{field|Ethnic Origin|input type=checkboxes|no autocomplete|property=Ethnic
White}}}
|}</div>
<div id="black">
{| class="formtable"
!
| {{{field|Ethnic Origin|input type=checkboxes|no autocomplete|property=Ethnic
Black}}}
|}</div>

You can save the form even if first name or surname are left blank. First Name
and Surname are string properties. 

Any ideas what is causing this? It's a bit of a show stopper.

Many 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