cancel
Showing results for 
Search instead for 
Did you mean: 

Set attributes in read only mode

isaacrojas
Champ in-the-making
Champ in-the-making
Hello everybody,

In my project I've been looking for a solution to set some attributes in read only mode in the "share-config-custom.xml" file, after search I found this solution I want to share with you. You always need to write read-only="true" after the field.

   <config>
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
                                <appearance>
                                        <field id="cm:name" read-only="true"/>
                                </appearance>
                        </form>
               </forms>
        </config>


Best regards.
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
Thanks for sharing that, Isaac.

If you are looking for additional ways to configure your form controls, take a look at the form configuration documentation <a href="   http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/forms-reference.html">here</a>.

Jeff

isaacrojas
Champ in-the-making
Champ in-the-making
Hello Jeff,

You welcome. I'll remember.

Best regards.