Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ToggleItem value not included in in form values

    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:

    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" }
                ]
            })
        ]
    });
    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.

    #2
    Thanks Claudio - this one's been fixed for tomorrow's builds.

    Comment


      #3
      SmartClient Version: v13.1p_2024-11-11/AllModules Development Only (built 2024-11-11)

      I see it's fixed, thank you very much

      Comment

      Working...
      X