AnsweredAssumed Answered

If condition in xsd to take decision while editing form

Question asked by darklord on Nov 1, 2010
Latest reply on Nov 3, 2010 by darklord
Hi folks,

This is related to WebForms under WCM. I have a form in which user enters some information. This form is generated via xsd. While creating a new page, users selects a folder location as an input value. I want that user should not be able to edit this field while editing the form. Is there any way I can define in the xsd that when users edits the form a label appears instead of a folder selector. Below you can find the xsd code snippet showing how folder selector appears in the form.

One possible solution I was thinking is that while editing somehow we are able to read the xml and see if the value is there under 'folderlocation' variable, we show a label instead of folder picker control. Any help would be highly appreciated.

<xs:element name="folderlocation" type="xs:anyURI" minOccurs="0">
                        <xs:annotation>
                           <xs:appinfo>
                                 <alf:label>Folder Location</alf:label>
                              <alf:appearance>folder_picker</alf:appearance>
                           </xs:appinfo>
                        </xs:annotation>
                     </xs:element>

Outcomes