Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

JS Validation of input fields in dialog

$
0
0

Hi All,

        We have a requirement where we have two field labels : Name and Address . When the dialog is opened for the first time both the  fields should be enabled . when  content  is entered in the Name field ,the address field should get disabled and vice versa.When the dialog is opened after saving the data ,the fields which have been filled should come up populated with the filled data and the other field should get disabled.Again ,when the data from the populated field (say name)is removed both the fields should get enabled.

 

 

         I am new to Adobe CQ .Any sample javascript  code snippet will be really helpful.

 

Thanks and regards


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>