• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOCheckbox behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: WOLisp Installation
  • Next by Date: Re: eomodeler, ldap, and many-to-many relationships
  • Previous by thread: RE: WOLisp Installation
  • Next by thread: Just once more, an EOF/ObjC replacement?
  • Index(es):
    • Date
    • Thread