HI,
Below are the listeners i initially implemented
Listener for checkbox
selectionchanged :
function(box,value,isChecked) {
var dlg = box.findParentByType("dialog");
var radio = dlg.findById("dropdownToggle1");
var textfield = dlg.findById("pimaryNavigationButtonText1");
var pathfield = dlg.findById("primaryNavigationButtonLink1");
var multifield = dlg.findById("navigationSection1");
isChecked ? radio.disable() : radio.enable();
isChecked ? textfield.disable() : textfield.enable();
isChecked ? pathfield.disable() : pathfield.enable();
isChecked ? multifield.disable() : multifield.enable();
}
Radio listener
selectionchanged:
function(box,value) {
var dlg = box.findParentByType("dialog");
var pathfield = dlg.findById("primaryNavigationButtonLink1");
var multifield = dlg.findById("navigationSection1");
if(value=='link'){
pathfield.enable();
multifield.disable();
}
else{
pathfield.disable();
multifield.enable();
}
}
The problem is that after authoring the fields, when you next change the selection of checkbox, all the four fields are enabled and not the fields according to the radio listener.
Solved! Go to Solution.
Views
Replies
Total Likes
I think, that is because you are enabling both pathfield and multifield on the checkbox selection change.
Actually, pathfield and multifield should be controlled on the radio field and it should not be in checkbox selectionChange. If you remove there, it should work.
Views
Replies
Total Likes
I think, that is because you are enabling both pathfield and multifield on the checkbox selection change.
Actually, pathfield and multifield should be controlled on the radio field and it should not be in checkbox selectionChange. If you remove there, it should work.
Views
Replies
Total Likes