Expand my Community achievements bar.

SOLVED

How to validate sizefield on blur

Avatar

Level 2

Hi,

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?

Thanks

Srini

1 Accepted Solution

Avatar

Correct answer by
Level 10

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 .  

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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 .