Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

CQ5.4 Dialog validation issue

Maruti_Prasad
Level 2
Level 2

Hi, 

I have a problem in CQ5 dialogs,

I have created a dialog with multiple tabs (say 4)

I have added few fields, say 3 in each tab.

Given label, name and description for all the fields, but when I entered the content and tried to submit the dialog it says “Verify the values of the marked fields.” Validation failed message.

I have entered the data in all fields but still facing the problem.here is my dialog in xml format

<?xml version="1.0" encoding="UTF-8"?> <dialog jcr:primaryType="cq:Dialog" cancelText="" height="400" okText="Ok" title="Enter Course Details" width="600" xtype="dialog" xmlns:repl="http://www.day.com/crx/replication/1.0" xmlns:dex="http://ns.optimasc.com/dex/1.0/" xmlns:wiki="http://www.day.com/jcr/wiki/1.0" xmlns:xmpPLUS="http://ns.adobe.com/xap/1.0/PLUS/" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions" xmlns:xmpNote="http://ns.adobe.com/xmp/note/" xmlns:album="http://ns.adobe.com/album/1.0/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:crxde="http://www.day.com/jcr/crxde/1.0" xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:MP="http://ns.microsoft.com/photo/1.2/" xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xmpBJ="http://ns.adobe.com/xap/1.0/bj/" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:vlt="http://www.day.com/jcr/vault/1.0" xmlns:prl="http://prismstandard.org/namespaces/prl/2.1/" xmlns:dam="http://www.day.com/dam/1.0" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:prism="http://prismstandard.org/namespaces/basic/2.1/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/" xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0" xmlns:psAux="http://ns.adobe.com/exif/1.0/aux/" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:rep="internal" xmlns:DICOM="http://ns.adobe.com/DICOM/" xmlns:crx="http://www.day.com/crx/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/" xmlns:plus="http://ns.useplus.org/ldf/xmp/1.0/" xmlns:prismusagerights="http://prismstandard.org/namespaces/prismusagerights/2.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:slingevent="http://sling.apache.org/jcr/event/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" xmlns:lr="http://ns.adobe.com/lightroom/1.0/">     <items jcr:primaryType="cq:Widget" xtype="tabpanel">         <items jcr:primaryType="cq:WidgetCollection">             <tab1 jcr:primaryType="cq:Panel" border="false" height="" title="Course Details" width="">                 <items jcr:primaryType="cq:WidgetCollection">                     <prop8 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="Course Title" disabled="false" emptyText="" fieldDescription="Course Title" fieldLabel="Title" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="2" minLengthText="" msgTarget="" name="./title" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textfield"/>                     <prop12 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="" disabled="false" emptyText="" fieldDescription="Course Description" fieldLabel="Description" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./description" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="richtext"/>                     <prop17 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="" disabled="false" emptyText="" fieldDescription="To display in listing page" fieldLabel="Teaser" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./teaser" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="richtext"/>                 </items>             </tab1>             <prop1 jcr:primaryType="cq:Panel" border="false" height="" title="Video" width="" xtype="panel">                 <items jcr:primaryType="nt:unstructured" allowBlank="false" blankText="Select video URL" disabled="false" emptyText="" fieldDescription="Course video URL" fieldLabel="Video URL" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="text" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./vurl" readOnly="false" regex="" regexText="" selectOnFocus="true" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textfield"/>             </prop1>             <prop2 jcr:primaryType="cq:Panel" border="false" height="" title="Quiz Details" width="" xtype="panel">                 <items jcr:primaryType="cq:WidgetCollection">                     <prop4 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="Take the Quiz" disabled="false" emptyText="Take the quiz " fieldDescription="" fieldLabel="Quiz Title" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="3" minLengthText="" msgTarget="" name="./qtitle" readOnly="false" regex="" regexText="" selectOnFocus="true" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textfield"/>                     <prop5 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="" disabled="false" emptyText="" fieldDescription="" fieldLabel="Description" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./qdesc" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textarea"/>                     <prop6 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="" disabled="false" emptyText="" fieldDescription="ID or URL of the Quiz form" fieldLabel="Quiz Id/ URL" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./qurl" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textfield"/>                 </items>             </prop2>             <prop13 jcr:primaryType="cq:Panel" title="Presntation " xtype="panel">                 <items jcr:primaryType="cq:WidgetCollection">                     <prop15 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="Title" disabled="false" emptyText="Title" fieldDescription="Title" fieldLabel="Title" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="2" minLengthText="" msgTarget="" name="./ptitle" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textfield"/>                     <prop18 jcr:primaryType="nt:unstructured" allowBlank="false" blankText="Enter description" disabled="false" emptyText="Enter description" fieldDescription="Enter description" fieldLabel="Description" fieldSubLabel="" grow="false" hideLabel="false" hideMode="" inputType="" maxLength="" maxLengthText="" minLength="10" minLengthText="" msgTarget="" name="./pdescription" readOnly="false" regex="" regexText="" selectOnFocus="false" validateOnBlur="true" validationDelay="" validationEvent="" validator="" vtype="" vtypeText="" xtype="textarea"/>                 </items>             </prop13>         </items>     </items> </dialog>  

Thanks 

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

Are you having issues when you try and build a Dialog with fewer tabs and fewer fields? Also -- can you follow the steps that are located in this AEM topic:

http://dev.day.com/docs/en/cq/current/developing/widgets.html

View solution in original post

2 Replies
smacdonald2008
Correct answer by
Level 10
Level 10

Are you having issues when you try and build a Dialog with fewer tabs and fewer fields? Also -- can you follow the steps that are located in this AEM topic:

http://dev.day.com/docs/en/cq/current/developing/widgets.html

View solution in original post

Maruti_Prasad
Level 2
Level 2

Hi,

I have this kind of issue when i am adding a new tab and added fields to it.And made all fields to be mandatory.

I have followed the same steps mentioned in Example 3: Multi Panel Dialog in the given link.

When i added the component in the page and entered all the required fields. when i clicked on finish it is displaying the same message, validation failed.