Hi All,
We have requirement to have a checkbox which decides to show or hide the textfield accordingly in multicomposite custom xtype
I wrote a listener which works for only selection change but not on dialog load.
Can i get any help how can we write the same listener functionality by onload listener on dialog.
I tried in many ways for accessing the checkbox values but not able to get the values help me in how to fetch the checkbox values from multicomposite field.
Please also find the required files attached.
Thanks,
Mani Kumar
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
Please have a look at this reference article, this may help you.
//Get value on dialog load.
You may use loadcontent listener for the same.
And to fetch value from dialog,
Link:- http://aem.matelli.org/fetching-properties-from-dialogs/
Getting value of checkbox from dialog :-= http://stackoverflow.com/questions/8710832/getting-value-of-checkbox-from-dialog
//
This works for me
Properties for dialog field:
name: ./checkbox1 type: checkbox xtype: selection
code:
boolean isChecked1 = properties.get("checkbox1", false);
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi
Please have a look at this reference article, this may help you.
//Get value on dialog load.
You may use loadcontent listener for the same.
And to fetch value from dialog,
Link:- http://aem.matelli.org/fetching-properties-from-dialogs/
Getting value of checkbox from dialog :-= http://stackoverflow.com/questions/8710832/getting-value-of-checkbox-from-dialog
//
This works for me
Properties for dialog field:
name: ./checkbox1 type: checkbox xtype: selection
code:
boolean isChecked1 = properties.get("checkbox1", false);
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi,
Where you are passing reference to dialog in method loadcontent() ?
you should use function(dialog){}
Thanks
Views
Replies
Total Likes
Views
Replies
Total Likes