|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Checkboxes
ksdffkjsdf
|
|
#2
|
|||
|
|||
|
If the checkbox is named "chkName", then on the target page you can get the value of it with #form.chkName# IF IT WAS CHECKED. If it was not checked the web browser does not send the field at all (this is not a CF issue). So you must test for it:
<cfif isDefined( 'form.chkName' )> ...field is there... </cfif> or assign a default value to it: <cfparam name="form.chkName" value="" />
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
sorry to jump into this thread but I think the info below is what i need....
i have a forum with checkboxes and radio buttons. the results are being put into a spreadsheet. if the checkbox/radio button is not selected, i need a value of NULL or any value for that matter to be passed to the spreadsheet. only problem is I don't know how to implement the suggestion below (what to put where). I am really new at this... can you help? Quote:
|
|
#4
|
|||
|
|||
|
This will set a default value of an empty string if the checkbox field doesn't exist on the form's action page:
<cfparam name="form.checkBoxName" value="" /> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Checkboxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|