02-05-2013 01:53 AM
"cm:name"
which is mandatory. I want to put validation in such a way that when user enters value in this field it should get copied to other field say "my:productName"
. In case user wants he can modify value of "my:productName"
."cm:name"
like below.
<field id="cm:name" label="Name">
<constraint-handlers>
<constraint type="MANDATORY" validation-handler="Alfresco.forms.validation.copyProdNameValue" event="keyup"/>
</constraint-handlers>
</field>
"cm:name"
say "Welcome Product" it copies value("Welcome Product") to "my:productName"
. But when user modify value of "my:productName"
(i.e. "Welcome Product") it again calls validation function for "cm:name"
(i.e. "Alfresco.forms.validation.copyProdNameValue") so it copies value from "cm:name"
to "my:productName"
.09-09-2013 03:11 AM
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.