Announcement

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

    setting radiogroup value to null

    I am trying to set the radiogroup item value to null but it does not work. Is there another way I should know about? I've tried setting it to null through the form as well as through the field itself but it does not work.

    Code:
    isc.DynamicForm.create({
        width: 500,
    ID: "testForm",
        fields: [{
            name: "shipTo", title: "Ship to", type: "radioGroup",ID: "testRadio",
            hint: "<nobr>Overnight shipping available for countries in bold</nobr>",
            valueMap: {
                "US" : "<b>United States</b>",
                "CH" : "China",
                "JA" : "<b>Japan</b>",
                "IN" : "India",
                "GM" : "Germany",
                "FR" : "France",
                "IT" : "Italy",
                "RS" : "Russia",
                "BR" : "<b>Brazil</b>",
                "CA" : "Canada",
                "MX" : "Mexico",
                "SP" : "Spain"
            },
            imageURLPrefix:"flags/16/",
            imageURLSuffix:".png",
            valueIcons: {
                "US" : "US",
                "CH" : "CH",
                "JA" : "JA",
                "IN" : "IN",
                "GM" : "GM",
                "FR" : "FR",
                "IT" : "IT",
                "RS" : "RS",
                "BR" : "BR",
                "CA" : "CA",
                "MX" : "MX",
                "SP" : "SP"
            }
        }]
    });
    
    testForm.setValue("shipTo", "US");
    
    isc.Button.create({
    click: function(){testForm.setValue("testRadio", null);testRadio.setValue(null)}
    });

    #2
    testForm.clearValue("testRadio");

    Comment

    Working...
    X