SmartClient Version: SNAPSHOT_v13.1d_2024-11-07/AllModules Development Only (built 2024-11-07)
Hello, I've just noticed that the value for a ToggleItem is not included in the values of the form. Please try this test case:
you can see that testForm.getValues() doesn't contain the value for toggle, both on or off. In my application, I also see that saveData is always sending false as a value for the ToggleItem.
Hello, I've just noticed that the value for a ToggleItem is not included in the values of the form. Please try this test case:
Code:
isc.VLayout.create({
membersMargin: 5,
members: [
isc.Header.create({ title:"Standalone Toggle" }),
isc.ToggleSwitch.create({ ID:"toggleSwitch" }),
isc.LayoutSpacer.create({ height:20 }),
isc.Header.create({ title:"Toggle in a form" }),
isc.DynamicForm.create({
ID:"testForm",
fields: [
{ name:"toggle", title:"Enable Noise Cancellation",
wrapTitle:false, editorType:"ToggleItem" }
]
})
]
});
Comment