cancel
Showing results for 
Search instead for 
Did you mean: 

If condition in xsd to take decision while editing form

darklord
Champ in-the-making
Champ in-the-making
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>
1 REPLY 1

darklord
Champ in-the-making
Champ in-the-making
I also tried to achieve this via changing this in configuration xml file but its not taking effect. Anybody, any idea ?? What is the purpose of 'show-in-edit-mode' property ?

<config evaluator="node-type" condition="cm:content">
<forms>
<form>
<appearance>
<field id="cm:folderlocation" show-in-edit-mode="false" />
</appearance>
</form>
</forms>
</config>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.