<config evaluator="node-type" condition="acme:document"> <forms> <form> <field-visibility> <show id="acme:anycustomproperty"/> </field-visibility> <appearance> <field id="acme:anycustomproperty" label-id="xqw"> <control template='/org/alfresco/components/form/controls/textfield.ftl' /> <control-param name='size'>5000</control-param> <control template='/org/alfresco/components/form/controls/textarea.ftl' /> <control-param name='rows'>10</control-param> <control-param name='columns'>10</control-param> </field> </appearance> </form> </forms> </config>
Is there a question that you wanted to ask but failed to include here?
Hi Axel,thanks,yes I tried to but not getting pasted with readable format, I used the code snippet(attached) but not showing up desired results. I need to maximise chacter limit to 5k on create and edit page
It certainly would be appreciated if you would spent the least amount of effort possible to describe the "desired" result, e.g. if you only want the restriction in the UI or you also want it to be validated / in the model. Instead of just saying "it doesn't work" maybe explain what else you have tried so far, what you may have seen in the logs or in terms of other behaviour. E.g. in your example it would be interesting to know if the field itself is even being displayed.
One thing that is obiously broken is your XML structure. Your control-param elements are not nested inside the control elements as they should,.
<config evaluator="node-type" condition="acme:document">
<forms>
<form>
<field-visibility>
<show id="acme:anycustomproperty"/>
</field-visibility>
<appearance>
<field id="acme:anycustomproperty" label-id="xqw">
<control template='/org/alfresco/components/form/controls/textfield.ftl'>
<control-param name='size'>5000</control-param>
</control>
<control template='/org/alfresco/components/form/controls/textarea.ftl'>
<control-param name='rows'>10</control-param>
<control-param name='columns'>10</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
yes Axel with that configuration,even size(rows/columns count ) was not altered.Used this , instead seems to work
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="rows">4</control-param>
<control-param name="columns">4</control-param>
<control-param name="maxLength">5000</control-param>
</control>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.