Skip to main content
Level 2
October 16, 2015
解決済み

How to validate sizefield on blur

  • October 16, 2015
  • 1 の返信
  • 742 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー 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 の返信

smacdonald2008
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 .