How To Get Value From Input Object ?
You can tell me more .
How the way to get value from object input (AW.UI.Input) ?
And If it can sent value with form ,Please tell me to .
Vincent
March 25,
Alex (ActiveWidgets)
March 26,
And How to setName to AW.UI.Radio ?
Ex
var itemTextArray = ["Male", "Female"];
var itemValueArray = ["M", "F"];
var radio = new AW.UI.Radio;
radio.setId("sex");
radio.setName("sex");
radio.setItemText(itemTextArray);
radio.setItemValue(itemValueArray);
radio.setItemCount(2);
radio.refresh();
I will add any think more ?
Vincent
March 26,
For lists you have to specify what is 'control value' and also make sure the hidden input tag is updated -
radio.onSelectedItemsChanged = function(items){
var index = items[0];
var value = this.getItemValue(index);
this.setControlValue(value);
}
radio.onControlValueChanged = function(){
this.getContent("data").refresh();
}
Alex (ActiveWidgets)
March 27,