WOCheckbox behaviour
WOCheckbox behaviour
- Subject: WOCheckbox behaviour
- From: Erwin <email@hidden>
- Date: Sat, 21 Aug 2004 11:00:36 +0200
I have a WOCheckbox in a form which is initially disabled in my page.
I enabled it when a textfield is changed, using a Javascript string :
onChange : this.form.saveFlag.disabled = false;
I set the value via a String variable defaultValue = "save"
and I try to get the selection via another String variable
selectedValue.
when I change the textfield value , the WOCheckbox is correctly enabled
I can check it
but when I submit the form, the selectedValue is still null... I should
get the defaultValue in it ! is it right ?
(that's what I read in Apple's doc :
When the page is submitted, selection is assigned the value of the
check box.
here is my wod
SubmitButton1: WOSubmitButton {
onSubmit = "this.form.submit()";
value = "Submit Form";
action = processForm;
}
TextField6: WOTextField {
name = "textfield3";
onChange = "this.form.changeflag.disabled = false;";
value = textfield3Value;
CheckBox1: WOCheckBox {
name = "changeflag";
disabled = disabledStatus;
selection = selectedValue;
value = defaultValue;
}
Form1: WOForm {
action = processForm;
}
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.