I have a requirement i want to validate sizefield width and height, the sum of both should not be more than 100(i.e if user enters value in any of the field suppose 35 the other should be filled with 65(sum is 100))
How to achieve this, if not possible with sizefield what shoild be the other best approach?
I assume you are referring to the CQ.form.SizeField. To get this behaviour -- extend this component. You need to add JS logic to it. For information about extending components, see http://dev.day.com/docs/en/cq/current/developing/widgets.html .
I assume you are referring to the CQ.form.SizeField. To get this behaviour -- extend this component. You need to add JS logic to it. For information about extending components, see http://dev.day.com/docs/en/cq/current/developing/widgets.html .