How to validate sizefield on blur | Community
Skip to main content
Level 2
October 16, 2015
Solved

How to validate sizefield on blur

  • October 16, 2015
  • 1 reply
  • 733 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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 .  

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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 .