hi,
i have a bug with the latest version 2013-01 with SPCascadeDropdowns, selectSingleOption: true and simpleChild: true when the values of the child column comes from a list with more than 20 items.
If i use SPComplexToSimpleDropdown instead of simpleChild: true, the problem is the same.
My 3 cascade lookup works well (LP1, LP2, LP3):
LP1 give values to LP2,
LP2 give values to LP3
When LP3 has only one value, the value is well selected with selectSingleOption: true. I don't change the selected value manualy.
The problem arrives when i save my form, the LP3 value isn't saved.
If i change the LP3 value to "None" and to "MyValue", this time the LP3 value is well saved.
This action produce a change event.
So in the SPServices code, i made a change like this :
```
case "S":
//childSelect.Obj.trigger("change"); moved after the new selection if occured
// If there is only one option and the selectSingleOption option is true, then select it
if(numChildOptions === 1 && opt.selectSingleOption === true) {
$(childSelect.Obj).find("option[value!='0']:first").attr("selected", "selected");
}
childSelect.Obj.trigger("change");
break;
```
I move your code "childSelect.Obj.trigger("change");" to be executed after the new selection.
This time the event is fired after the new selection and the simple select write the selected value in the hidden input.
i have a bug with the latest version 2013-01 with SPCascadeDropdowns, selectSingleOption: true and simpleChild: true when the values of the child column comes from a list with more than 20 items.
If i use SPComplexToSimpleDropdown instead of simpleChild: true, the problem is the same.
My 3 cascade lookup works well (LP1, LP2, LP3):
LP1 give values to LP2,
LP2 give values to LP3
When LP3 has only one value, the value is well selected with selectSingleOption: true. I don't change the selected value manualy.
The problem arrives when i save my form, the LP3 value isn't saved.
If i change the LP3 value to "None" and to "MyValue", this time the LP3 value is well saved.
This action produce a change event.
So in the SPServices code, i made a change like this :
```
case "S":
//childSelect.Obj.trigger("change"); moved after the new selection if occured
// If there is only one option and the selectSingleOption option is true, then select it
if(numChildOptions === 1 && opt.selectSingleOption === true) {
$(childSelect.Obj).find("option[value!='0']:first").attr("selected", "selected");
}
childSelect.Obj.trigger("change");
break;
```
I move your code "childSelect.Obj.trigger("change");" to be executed after the new selection.
This time the event is fired after the new selection and the simple select write the selected value in the hidden input.