AnsweredAssumed Answered

Auto numbering on sequence elements in forms

Question asked by sbzoom on Jul 16, 2008
Latest reply on Jul 23, 2009 by sbzoom
Hello.
I am creating a form for making HTML slideshows.  The slideshows are broken into pages.  I have a sequence in an element and I would like one of the fields to auto-number when it is added.  Here is the sample of the xsd:


                <xs:element name="slideshow_pages">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="slideshow_page" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="title" type="xs:normalizedString" minOccurs="0" maxOccurs="1"/>
                                        <xs:element name="text" type="xs:normalizedString" minOccurs="0" maxOccurs="1"/>
                                        <xs:element name="page_number" type="xs:integer" minOccurs="0" maxOccurs="1"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>

I would like the "page_number" element to get a "1, 2, 3, 4, 5…" with each successive "slideshow_page" that is added to the form.  Is this possible?  Do I need to create my own widget for this?

Thanks.


Charlie

Outcomes