costasx
20 Jul 2007, 12:47 PM
Ok so I'm new to EXT since just 4 days but already think it's great but some adaptations/interpretations are not well documented. Specifically I refer to the way the checkbox works. Ideally the checkbox is a boolean type of field but the standard checkbox if it is checked will pass back what is set in the value attribute.
I am wondering if there is a way to do this. To give some context on why I need this it's because I am almost done implementing a multi-select using checkboxes. If I cannot return the values of the checked option than it's useless to me to know what was checked as I will have several checkboxes all with the same name.
I've looked at alternatives such as using a Grid but when doing that I cannot get it to pass me back the selected grid values when the form is submitted. Therefore I think that setting/getting the value back from selected checkbox is an easier option.
Anyone have any thoughts/recommendations of setting/getting the value of a checkbox element? (note i have treid to manually create checkbox elements in the Grid with the value but they are removed??
thanks,
costas
I am wondering if there is a way to do this. To give some context on why I need this it's because I am almost done implementing a multi-select using checkboxes. If I cannot return the values of the checked option than it's useless to me to know what was checked as I will have several checkboxes all with the same name.
I've looked at alternatives such as using a Grid but when doing that I cannot get it to pass me back the selected grid values when the form is submitted. Therefore I think that setting/getting the value back from selected checkbox is an easier option.
Anyone have any thoughts/recommendations of setting/getting the value of a checkbox element? (note i have treid to manually create checkbox elements in the Grid with the value but they are removed??
thanks,
costas