Do you show the selectgroup widget inside a <group/> element ? Can you
post the html which is rendered (or part of it) ?
Dennis
Slobodan Bogdanovic wrote:
Hi Dennis,
Only mandatory mark is missing. Document can't be saved without
subjects selected.
Thanks for your feedback,
Slobodan
Dennis Dam wrote:
Hi Slobodan,
is just the mandatory mark missing, or is the field indeed not
required: can you can save the document when have no subjects ?
regards,
Dennis
Slobodan Bogdanovic wrote:
Hi all,
I created few backend templates (cocoon forms) for HippoCMS and I
can't make selectgroup widget mandatory. I only get selectgroup
widget and label without mandatory mark. If I replace selectgroup
listitempreview in layout.xml, listitempreview is displayed properly
and it is marked as required.
Here are the snippets of my backend template:
schema:
-------
<xs:element name="subjects">
<xs:complexType>
<xs:sequence>
<xs:element name="subject" type="xs:string"
use="required" minOccurs="1" maxOccurs="3"/>
</xs:sequence>
</xs:complexType>
</xs:element>
layout:
-------
<template name="/document/meta/common/subjects">
<selectgroup id="/document/meta/common/subjects/subject" size="5"/>
</template>
business logic:
---------------
<rule for="/document/meta/common/subjects">
<selectionsource
src="repository://content/re-public/construction/subjects.xml"
type="nodetree" cache="false"/>
<validation>
<validator name="required"/>
</validation> </rule>
How can I create selectgroup widget marked as mandatory? Is this a
bug or I am missing something?
Thanks in advance,
Slobodan Bogdanovic
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
--
Hippo
[EMAIL PROTECTED]
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 (707) 773-4646
www.onehippo.com [EMAIL PROTECTED]
********************************************
Hippocms-dev: Hippo CMS development public mailinglist