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.
Thanks and regards
You can refer cq widget events which you can override for specific resource (for example textfield, textarea etc...) by creating a "listener" subnode underneath and overriding any of its methods suits your requirement.
you can check for available methods for each of these type at http://dev.day.com/docs/en/cq/current/widgets-api/index.html