cfselect, bind and radio button

2011-02-22 Thread Naveen Balraj
Hi All, Can you direct me to an example of how to use cfselect, bind based on the selection of a radio button. I have seen examples where you select one input from one drop down, which changes the other drop down values. But I have never seen any examples where the user selects a radio

Can't deselect a radio button inside a cfwindow

2010-01-25 Thread John Pullam
This should be easy but I can't figure it out. I have a radio button with a variable number of entries and I pass the selected value into a cfwindow. When I am done and I close the window, I want to deselect the chosen radio button so the user does not think that the button is still selected

Re: Grouping of Radio Button

2009-02-09 Thread Priya Koya
your radio buttons have same NAME - radio1 - thus you have a group of 9 radio buttons. you need to have a different NAME for each question. you will also, presumably, want a different VALUE for each of your radio button, too, so depending on which one is selected you get its value in the form

Re: Grouping of Radio Button

2009-02-09 Thread Peter Boughton
There are very few cases when Evaluate() should be used. Don't do this: cfset var1 = #Evaluate(form.i)# cfoutput#var1#/cfoutput Do this: cfoutput#Form[i]#/cfoutput ~| Adobe® ColdFusion® 8 software 8 is the most important

Re: Grouping of Radio Button

2009-02-09 Thread Peter Boughton
Yes, but how could I really make the radiobutton name unique as it is in the loop. Is there any other way I can do if this is not the best approch?? Don't make the *name* unique, make the *value* unique. ~| Adobe®

Re: Grouping of Radio Button

2009-02-09 Thread Priya Koya
ok.. but here my out put also includes the Submit field name and I dont want to display in my output... How could I do that? I just need: Va1l Val2 Val3 not the Submit field. On Mon, Feb 9, 2009 at 9:01 AM, Peter Boughton bought...@gmail.com wrote: There are very few cases when Evaluate()

RE: Grouping of Radio Button

2009-02-09 Thread William Seiter
, February 09, 2009 6:35 AM To: cf-talk Subject: Re: Grouping of Radio Button Yes I did.. but again I am getting the field values along with the submit value.. how do I append it.. I just need the field values. cfloop list=#form.fieldnames# index=i !--- cfoutput#i#/cfoutputBR

Re: Grouping of Radio Button

2009-02-09 Thread Azadi Saryev
are you familiar with cfif...cfelse.../cfif construct? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: ok.. but here my out put also includes the Submit field name and I dont want to display in my output... How could I do that? I just need: Va1l Val2 Val3 not

Re: Grouping of Radio Button

2009-02-09 Thread Priya Koya
But we cannot use to or from when we use... list. On Mon, Feb 9, 2009 at 10:35 AM, Azadi Saryev az...@sabai-dee.com wrote: are you familiar with cfif...cfelse.../cfif construct? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: ok.. but here my out put also

Re: Grouping of Radio Button

2009-02-09 Thread Azadi Saryev
cfoutput cfloop list=#form.fieldnames# index=field cfif left(field, 5) eq radio #field# : #form[field]#br / /cfif /cfloop /cfoutput Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: But we cannot use to or from when we use... list. On Mon, Feb 9, 2009 at 10:35 AM,

Re: Grouping of Radio Button

2009-02-09 Thread Priya Koya
How do I save these values in a variables? On Mon, Feb 9, 2009 at 12:35 PM, Azadi Saryev az...@sabai-dee.com wrote: cfoutput cfloop list=#form.fieldnames# index=field cfif left(field, 5) eq radio #field# : #form[field]#br / /cfif /cfloop /cfoutput Azadi Saryev Sabai-dee.com

Re: Grouping of Radio Button

2009-02-09 Thread Azadi Saryev
if you do not like CFSET tag for some reason, you can do it inside a cfscript block... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: How do I save these values in a variables? On Mon, Feb 9, 2009 at 12:35 PM, Azadi Saryev az...@sabai-dee.com wrote: cfoutput

Grouping of Radio Button

2009-02-08 Thread Priya Koya
value=Submit /cfform cfif isDefined(form.Submit) cfoutput#form.radio1#/cfoutput /cfif The output for this is Question and 3 choose of radio button. I need to choose one option for each of the question. but now I can choose only one option for all the questions i.e one in 9 radio button. Can any

RE: Grouping of Radio Button

2009-02-08 Thread Michel Mes - Netwise
you have to make the name of the radio button unique for every question - hard coded this would give radio1 for question1, radio2 for question2 and radio3 for question3 M -Original Message- From: Priya Koya [mailto:priya23...@gmail.com] Sent: maandag 9 februari 2009 4:41 To: cf-talk

Re: Grouping of Radio Button

2009-02-08 Thread Priya Koya
Yes, but how could I really make the radiobutton name unique as it is in the loop. Is there any other way I can do if this is not the best approch?? Thanks, you have to make the name of the radio button unique for every question - hard coded this would give radio1 for question1, radio2

Re: Grouping of Radio Button

2009-02-08 Thread Azadi Saryev
that is because ALL your radio buttons have same NAME - radio1 - thus you have a group of 9 radio buttons. you need to have a different NAME for each question. you will also, presumably, want a different VALUE for each of your radio button, too, so depending on which one is selected you get its

Re: Grouping of Radio Button

2009-02-08 Thread Priya Koya
- thus you have a group of 9 radio buttons. you need to have a different NAME for each question. you will also, presumably, want a different VALUE for each of your radio button, too, so depending on which one is selected you get its value in the form scope. right now, based on your code, no matter

Re: Grouping of Radio Button

2009-02-08 Thread Azadi Saryev
need to have a different NAME for each question. you will also, presumably, want a different VALUE for each of your radio button, too, so depending on which one is selected you get its value in the form scope. right now, based on your code, no matter which radio button is selected, you will get

populate cfselect based on onClick of a radio button

2009-02-04 Thread Nathan Chen
Hi, All: This might be a simple issue but my knowledge just runs out. I have 3 cfinput type='radio with 3 values. When the user click one of them, a cfselect will be populated based on the value of that radio button. So if the value is A, I populate it with query A, etc. Here

Radio Button settings

2008-11-10 Thread Me Gupta
HI, I guess this is a rather basic question, but I am really having a hard time finding a solution. I have a group of radio buttons. Data from the db should determine which button is checked. How do I set this? It is like this - the code for intitial display of the page is like- input

Radio button selection question

2008-11-10 Thread Damayanti Gupta
HI, I guess this is a rather basic question, but I am really having a hard time finding a solution. I have a group of radio buttons. Data from the db should determine which button is checked. How do I set this? It is like this - the code for intitial display of the page is like- input

Re: Radio Button settings

2008-11-10 Thread Rob Parkhill
as follows input type=radio id=apple name=Fruit value=Applecfif databasevalue eq apple checked=checked /cfif / and then add the rest for the other buttons. Rob On Mon, Nov 10, 2008 at 2:31 PM, Me Gupta [EMAIL PROTECTED] wrote: HI, I guess this is a rather basic question, but I am really

Re: Radio button selection question

2008-11-10 Thread AJ Mercer
This will do it input type=radio id=apple name=Fruit value=Apple cfif qryResults.Fruit EQ Applechecked=checked /cfif / input type=radio id=mango name=Fruit value=Mango cfif qryResults.Fruit EQ Mangochecked=checked /cfif / input type=radio id=orange name=Fruit value=Orange cfif qryResults.Fruit EQ

Re: Setting a default value and dynamically checking a radio button

2008-06-09 Thread TechInfo
Les Mizzell wrote: The only thing I can find that works is: cfif thisNL.alignHEAD EQ rgt or thisNL.recordcount NEQ 1 checked=checked /cfif Which is a little uglier that setting thisNL.alignHEAD to rgt by default if it isn't anything else. If thisNL is a query, you CAN reset a

RE: Setting a default value and dynamically checking a radio button

2008-06-09 Thread Bobby Hartsfield
: Setting a default value and dynamically checking a radio button Les Mizzell wrote: The only thing I can find that works is: cfif thisNL.alignHEAD EQ rgt or thisNL.recordcount NEQ 1 checked=checked /cfif Which is a little uglier that setting thisNL.alignHEAD to rgt by default

Re: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Azadi Saryev
1) why don't you use form.alignHEAD instead of thisNL.alignHEAD? if you must use thisNL, then maybe add cfset thisNL = structnew() before your cfparam tag... 2) you don't need those # inside len(trim()) 3) your cfif block is redundant - you already set your var with cfparam if it does not exist

Re: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Les Mizzell
3) your cfif block is redundant - you already set your var with cfparam if it does not exist I had both there testing to see if one of them would catch the null/empty value and set the variable. *Neither* is catching is, so it's not getting set. So, looking at it again. I want the first

Re: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Les Mizzell
If I do cfoutput#thisNL.alignHEAD#/cfoutput - these nothing there, , so I'm not sure why the below won't set the varialbe to rgt in this case. cfif NOT len(trim(thisNL.alignHEAD)) cfset thisNL.alignHEAD =rgt / /cfif This works: cfif thisNL.recordcount EQ 0 cfset

Re: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Les Mizzell
cfif thisNL.recordcount EQ 0 cfset thisNL.alignHEAD =rgt / /cfif Spoke too quick - no it doesn't. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

RE: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Bobby Hartsfield
10:16 AM To: CF-Talk Subject: Re: Setting a default value and dynamically checking a radio button If I do cfoutput#thisNL.alignHEAD#/cfoutput - these nothing there, , so I'm not sure why the below won't set the varialbe to rgt in this case. cfif NOT len(trim(thisNL.alignHEAD)) cfset

RE: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Bobby Hartsfield
and dynamically checking a radio button If I do cfoutput#thisNL.alignHEAD#/cfoutput - these nothing there, , so I'm not sure why the below won't set the varialbe to rgt in this case. cfif NOT len(trim(thisNL.alignHEAD)) cfset thisNL.alignHEAD =rgt / /cfif This works: cfif thisNL.recordcount

Re: Setting a default value and dynamically checking a radio button

2008-06-08 Thread Les Mizzell
The only thing I can find that works is: cfif thisNL.alignHEAD EQ rgt or thisNL.recordcount NEQ 1 checked=checked /cfif Which is a little uglier that setting thisNL.alignHEAD to rgt by default if it isn't anything else.

Setting a default value and dynamically checking a radio button

2008-06-07 Thread Les Mizzell
The below is on a page to add or edit records. When you visit the page, if no recordset is returned by the query, it will ADD when the form is submitted. If a record is returned, it will update. Standard stuff.. Small problem I'm having - I need to set a few default values to check some

Re: (ot) Radio Button Matrix

2008-05-16 Thread Sonny Savage
PROTECTED] wrote: Can somebody point me to a good tutorial to build a small radio button matrix (just 3 x 3) What I need is a matrix like: 1st 2nd 3rd Tom O O O Bob O O O Mom O O O where you can have only one button checked in a row

(ot) Radio Button Matrix

2008-05-15 Thread Les Mizzell
Can somebody point me to a good tutorial to build a small radio button matrix (just 3 x 3) So far, I've not turned up anything that seems to work well cross browser (all javascript so far...) TIA ~| Adobe® ColdFusion® 8

Re: (ot) Radio Button Matrix

2008-05-15 Thread Sonny Savage
Your request is kinda' light on the details... maybe links to the javascript ones so we can see what you mean? On Thu, May 15, 2008 at 3:59 PM, Les Mizzell [EMAIL PROTECTED] wrote: Can somebody point me to a good tutorial to build a small radio button matrix (just 3 x 3) So far, I've

Re: (ot) Radio Button Matrix

2008-05-15 Thread Les Mizzell
Can somebody point me to a good tutorial to build a small radio button matrix (just 3 x 3) What I need is a matrix like: 1st 2nd 3rd Tom O O O Bob O O O Mom O O O where you can have only one button checked in a row *or* column. How's

radio button validation

2007-04-18 Thread Steven Sprouse
I know you can do a cfif not len(trim(form.fname)) to throw an error if a form field is blank, but how do you do the same type of thing for a radio button. Is it any different? For some reason I keep getting an error on my form that says app_on_file is undefined in Form when I leave it blank

RE: radio button validation

2007-04-18 Thread Dawson, Michael
You can use cfparam to define a default value for the radio button. Then, check for the default value and throw an error as appropriate. Or, change the radio button to a select list. M!ke -Original Message- From: Steven Sprouse [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007

Re: radio button validation

2007-04-18 Thread Kris Jones
, Steven Sprouse [EMAIL PROTECTED] wrote: I know you can do a cfif not len(trim(form.fname)) to throw an error if a form field is blank, but how do you do the same type of thing for a radio button. Is it any different? For some reason I keep getting an error on my form that says app_on_file

variable name radio button in a loop

2007-02-17 Thread Les Mizzell
Seems this would work, but it doesn't. What would be the best way to handle this? 1. cfloop from=1 to=8 index=i 2. 3. input name=II_C_convert#i# 4. type=radio 5. value=yes 6. cfif getapp.II_C_convert#i# EQ yes 7. checked=checked 8. /cfif 9. / /cfloop The

Re: variable name radio button in a loop

2007-02-17 Thread Les Mizzell
It's late and I'm an idiot! The answer is: input name=II_C_convert#i# type=radio value=yes /Yes cfif evaluate(getapp.II_C_convert#i#) EQ yes checked=checked /cfif I either need to get some sleep or drink some more Jolt... Seems

RE: variable name radio button in a loop

2007-02-17 Thread Bobby Hartsfield
getapp['II_C_convert' i] -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Saturday, February 17, 2007 9:40 PM To: CF-Talk Subject: Re: variable name radio button in a loop It's late and I'm an idiot! The answer is: input name=II_C_convert#i# type=radio

RE: variable name radio button in a loop

2007-02-17 Thread Mik Muller
I have to start using that notation. I use evaluate() entirely too much, and I assume this notation is faster? Michael At 09:49 PM 2/17/2007, you wrote: getapp['II_C_convert' i] cfif evaluate(getapp.II_C_convert#i#) EQ yes Michael Muller Admin, MontagueMA.net Website

Re: variable name radio button in a loop

2007-02-17 Thread Les Mizzell
Bobby Hartsfield wrote: getapp['II_C_convert' i] That's even moe spiffy than evaluate. Thanks... -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Saturday, February 17, 2007 9:40 PM To: CF-Talk Subject: Re: variable name radio button in a loop It's late

RE: JS and Radio Button Issue

2007-01-10 Thread Kevan Stannard
: Wednesday, 10 January 2007 3:05 PM To: CF-Talk Subject: RE: JS and Radio Button Issue Thanks Charlie. That did it. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 4:20 PM To: CF-Talk Subject: Re: JS and Radio Button Issue few things i can

RE: JS and Radio Button Issue

2007-01-10 Thread Robertson-Ravo, Neil (RX)
I think what you have here is simply Prototype - you should not require jquery. -Original Message- From: Kevan Stannard [mailto:[EMAIL PROTECTED] Sent: 10 January 2007 09:27 To: CF-Talk Subject: RE: JS and Radio Button Issue Hi Bruce, Something that you might want to look

JS and Radio Button Issue

2007-01-09 Thread Bruce Sorge
I have a form that has two radio buttons. Their function is to show one of two hidden divs. The JS is this: script language=JavaScript function toggle('with', 'without') { if (document.getElementById) { withvbm= document.getElementById('with'); withoutvbm= document.getElementById('without'); } if

Re: JS and Radio Button Issue

2007-01-09 Thread Charlie Griefer
few things i can see would be a problem. you have multiple elements with ids with and without (the radio buttons and the divs). the code below should work. script language=JavaScript function toggle(divToShow) { if (document.getElementById) { if

RE: JS and Radio Button Issue

2007-01-09 Thread Bruce Sorge
Thanks Charlie. That did it. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 4:20 PM To: CF-Talk Subject: Re: JS and Radio Button Issue few things i can see would be a problem. you have multiple elements with ids with and without

Re: JS and Radio Button Issue

2007-01-09 Thread Robertson-Ravo, Neil (RX)
: Charlie Griefer To: CF-Talk Sent: Wed Jan 10 00:19:47 2007 Subject: Re: JS and Radio Button Issue few things i can see would be a problem. you have multiple elements with ids with and without (the radio buttons and the divs). the code below should work. script language=JavaScript function

Flash radio button question

2006-05-10 Thread Andy Matthews
is a radio button group set to either yes or no) I get the text [object Object]. How do I access the actual value of that group? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
If you are using the same component that I am(Flash UI components), try: radioButtonName.getValue() -seth -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 12:51 PM To: CF-Talk Subject: Flash radio button question When I POST a Flash

RE: Flash radio button question

2006-05-10 Thread Andy Matthews
, 2006 12:02 PM To: CF-Talk Subject: RE: Flash radio button question If you are using the same component that I am(Flash UI components), try: radioButtonName.getValue() -seth -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 12:51 PM

RE: Flash radio button question

2006-05-10 Thread Kevin Aebig
, 2006 11:30 AM To: CF-Talk Subject: RE: Flash radio button question On the coldfusion page? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
Yeah, I was assuming you were coding in ActionScript and using LoadVars or remoting. -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 1:40 PM To: CF-Talk Subject: RE: Flash radio button question The question isn't how you use the variable

RE: Flash radio button question

2006-05-10 Thread Andy Matthews
It's a radio button group. I click one radio button and it highlights, I click the other and it changes. I've named the group, so it should be submitting along with the text fields right? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
PROTECTED] Sent: Wednesday, May 10, 2006 1:55 PM To: CF-Talk Subject: RE: Flash radio button question It's a radio button group. I click one radio button and it highlights, I click the other and it changes. I've named the group, so it should be submitting along with the text fields right

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
Andy, I think we are a little confused in how you are doing this. So, you have a flash movie with some form type elements, correct? So, what functionality are you using to pass these values to a processing page. Assuming you coding using the Flash IDE or in a seperate .as file? Just trying

RE: Flash radio button question

2006-05-10 Thread Andy Matthews
of the text fields work properly, but when I try output the value of either of the radio button groups I get the text [object Object]. All I need to know is how to access the radio button group variable from within Flash. When setting up my form I simply grabbed the default radio button component, gave

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
Andy, If you are using the Flash ide, you can use the trace command and it will display info in the output window. So, try something like this(but replace radioButtonName with yours) trace(radioButtonName.getValue()); It looks like we are using the same radio button component, so

RE: Flash radio button question

2006-05-10 Thread Andy Matthews
--//- -Original Message- From: Turetsky, Seth [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 1:59 PM To: CF-Talk Subject: RE: Flash radio button question Andy, If you are using the Flash ide, you can use the trace command and it will display info in the output window. So, try

RE: Flash radio button question

2006-05-10 Thread Andy Matthews
Seth... That did it. I simply output 2 new variables with the value of radioGroupName.getValue() and that worked perfectly. Now, the bigger questions is “who was the complete idiot that forced us users to have to go through that extra step?” !//-- andy matthews web developer

RE: Flash radio button question

2006-05-10 Thread Turetsky, Seth
- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 3:25 PM To: CF-Talk Subject: RE: Flash radio button question Seth... That did it. I simply output 2 new variables with the value of radioGroupName.getValue() and that worked perfectly. Now, the bigger questions is who

RE: Flash radio button question

2006-05-10 Thread Kevin Aebig
To: CF-Talk Subject: RE: Flash radio button question Seth... That did it. I simply output 2 new variables with the value of radioGroupName.getValue() and that worked perfectly. Now, the bigger questions is who was the complete idiot that forced us users to have to go through that extra step

Re: OT: Prevent form submission if radio button and text field are not filled out

2005-11-25 Thread Massimo Foti
Writing ad hoc JavaScript code for form validation isn't a great idea in my opinion. You could investigate using a library like the ones below: http://www.massimocorner.com/validator/ http://www.pengoworks.com/index.cfm?action=get:qforms Massimo Foti Tools for

RE: Prevent form submission if radio button and text field are not filled out

2005-11-23 Thread Dan G. Switzer, II
://www.pengoworks.com/qforms/ -Dan -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 5:02 PM To: CF-Talk Subject: OT: Prevent form submission if radio button and text field are not filled out Anyone have any ideas? I've cut out a portion

RE: Prevent form submission if radio button and text field are not filled out

2005-11-23 Thread Andy Matthews
--//- -Original Message- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 8:06 AM To: CF-Talk Subject: RE: Prevent form submission if radio button and text field are not filled out Andy, You can do this very easily in qForms using a dependency

FW: OT: Prevent form submission if radio button and text field are not filled out

2005-11-23 Thread Bobby Hartsfield
: Prevent form submission if radio button and text field are not filled out function testPayMethod() { f = document.payform; var radioCheck = false; var firstEl = 0; var lastEl = 3; for (i=firstEl;ilastEl;i++) { if (f.elements[i].checked == true) { radioCheck = true; } } if (!radioCheck

OT: Prevent form submission if radio button and text field are not filled out

2005-11-22 Thread Andy Matthews
Anyone have any ideas? I've cut out a portion of a form on which I'm working: http://www.andyandjaime.com/uploads/radiojs.html It's supposed to pop an alert box (and disable the form) when you click check out IF a) You've got either of the top two options (troop check or troop debit) selected

Re: OT: Prevent form submission if radio button and text field are not filled out

2005-11-22 Thread Kiley Simpson
Are you saying you need a DHTML script to reactivate the submit button if the Troop T.E.N. value is not null and either Troop radio button is selected? At 03:02 PM 11/22/2005, you wrote: Anyone have any ideas? I've cut out a portion of a form on which I'm working: http://www.andyandjaime.com

RE: OT: Prevent form submission if radio button and text field are not filled out

2005-11-22 Thread Andy Matthews
--//- -Original Message- From: Kiley Simpson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 4:18 PM To: CF-Talk Subject: Re: OT: Prevent form submission if radio button and text field are not filled out Are you saying you need a DHTML script to reactivate the submit

RE: OT: Prevent form submission if radio button and text field are not filled out

2005-11-22 Thread Bobby Hartsfield
is fine return true; } } The function returns either true or false so make your form's onsubmit this... Onsubmit=return testPayMethod(); The firstEl is the position of the first radio button and lastEl is the position of the last radio button. Should make it easier to move the radios around

RE: Another radio button problem

2005-09-15 Thread Bobby Hartsfield
-Original Message- From: Mark Henderson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 12:00 AM To: CF-Talk Subject: Another radio button problem I am having issues with a form that allows multiple deletes (or in this case simply changing the active db field to no) from a database

RE: Another radio button problem

2005-09-15 Thread Mark Henderson
-Talk Subject: RE: Another radio button problem You have an ID field for every single record. So yes, it's hitting them all in your action query when you loop over that field. Give your delete_noticeboard field a value of the NoticeBoardID inside your loop. On your form, change input name

Another radio button problem

2005-09-14 Thread Mark Henderson
I am having issues with a form that allows multiple deletes (or in this case simply changing the active db field to no) from a database using checkboxes. Hers the deal so far. The query to display all noticeboard items is... cfquery name = qryNoticeboard datasource = #request.dsn# SELECT

RE: Another radio button problem

2005-09-14 Thread Mark Fuqua
, active FROM noticeBoard WHERE active = Yes ORDER BY dateAdded DESC /cfquery /cfif cfloop Mark -Original Message- From: Mark Henderson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 12:00 AM To: CF-Talk Subject: Another radio button

RE: Another radio button problem

2005-09-14 Thread Mark Fuqua
-Original Message- From: Mark Henderson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 12:00 AM To: CF-Talk Subject: Another radio button problem I am having issues with a form that allows multiple deletes (or in this case simply changing the active db field to no) from a database using

RE: Another radio button problem

2005-09-14 Thread Mark Henderson
Ty Mark and your last post does make sense. I will try that in a couple of hours when I have time to re-attack it. -Original Message- From: Mark Fuqua [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 September 2005 4:33 p.m. To: CF-Talk Subject: RE: Another radio button problem Sorry, real

Radio Button Error on Server?!?

2005-05-13 Thread Les Mizzell
What the heck? I've got a very simple form with a simple radio button: input name=safety_required type=radio value=Yes Yes input name=safety_required type=radio value=No checked No Typical Insert code (SQL Server) on the form that I've used 1000 times before and I know it's correct. The Yes

RE: Radio Button Error on Server?!?

2005-05-13 Thread Montgomery Chris Contr AFSFC/SFPA
:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 7:40 AM To: CF-Talk Subject: Radio Button Error on Server?!? What the heck? I've got a very simple form with a simple radio button: input name=safety_required type=radio value=Yes Yes input name=safety_required type=radio value=No checked No [snip

Re: Radio Button Error on Server?!?

2005-05-13 Thread Les Mizzell
Montgomery Chris Contr AFSFC/SFPA wrote: Les, I think you're hitting against CF's built-in form validation that runs server-side. That did it. Changing form vars safety_required to safetyreq did the trick. I was tearing my hair out because it wasn't giving me a problem locally

Repopulating radio button values after form submission

2005-02-07 Thread Mark Leder
Hi all, On an initial form display, I have a query looping through radio buttons to dynamically populate the radio names and values, works great. The query set returns the #moduleID#, which is numeric. When I submit the form, the same page is called again, and I have some server-side form

Re: Repopulating radio button values after form submission

2005-02-07 Thread Patti Lee
Would something like this work for you? input name=#moduleID# type=radio class=user5 value=5 cfif FORM.moduleID EQ 5 OR (structkeyexists(form, moduleID) and form[moduleID] eq 5) checked/cfif / On Mon, 7 Feb 2005 13:39:32 -0500, Mark Leder [EMAIL PROTECTED]

Re: radio button

2005-01-29 Thread sing song
Thanks Mike. Basically I am try to select the radio button and save the value (1 or 0) in the table under answer_correct. I have deleted the datasource in the code I am submitting below. Let me know how to be able to select the value of the radio button and save in a table. Thanks

radio button

2005-01-28 Thread sushma sundareshan
Hello: In my form, I do the following: 1. Enter a question in text box 2. Enter the num of answers in text box 3. Fill the answers in text box 4. Specify the correct answer by checking a radion button 5. Save this is a table. I am unable to save the value i selected by a radio button

RE: radio button

2005-01-28 Thread Michael T. Tangorre
by a radio button for the correct answer in the table. You are going to have to provide a little more information than that. Perhaps you can post the page someplace online and give us a better understanding of the problem. Mike

RE: Bad Radio Button

2004-09-13 Thread guy . mcdowell
Turns out my problem stemmed from using deprecated values for checked. I used checked = yes, when it's supposed to be just checked or nothing at all. Guy McDowell Web Developer [EMAIL PROTECTED] - Magma Communications Ltd. t: 613.228.3565 x6348 f: 613.228.8313 http://websites.magma.ca This

Re: Bad Radio Button

2004-09-13 Thread Jeff Price
Guy, If you are using XHTML this should be checked=checked as the HTML 4.0 attribute minimization you are using has itself been deprecated. :) http://www.w3.org/TR/xhtml1/#h-4.5 Turns out my problem stemmed from using deprecated values for checked. I used checked = yes, when it's supposed to

Bad Radio Button

2004-09-12 Thread guy . mcdowell
Alright, this is what I've got input type=Radio name=blnLgBnrActive cfif getInspirationsPEBanner.blnLgBnrActive IS 1value=1 checked=Yes cfelse value=0 checked=No/cfif But what's happening is that the 3rd record through should be checked, since getInspirationsPEBanner.blnLgBnrActive

RE: Bad Radio Button

2004-09-12 Thread Adrian Lynch
Got any more info? Are you looping over a recordset? What else is happening? Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 September 2004 21:11 To: CF-Talk Subject: Bad Radio Button Alright, this is what I've got input type=Radio name

RE: Bad Radio Button

2004-09-12 Thread Ewok
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 4:11 PM To: CF-Talk Subject: Bad Radio Button Alright, this is what I've got input type=Radio name=blnLgBnrActive cfif getInspirationsPEBanner.blnLgBnrActive IS 1value=1 checked=Yes cfelse value=0 check

RE: Bad Radio Button

2004-09-12 Thread Ewok
Well, I actually threw a datasource in there and some real tables and there were a ton of mistakes… This code actually works. Just change the list of tables and it’s displaytext list as well as the datasource on the query. !--- make a valid list of tables to choose from for the second field ---

RE: Bad Radio Button

2004-09-12 Thread Ewok
Are my posts actually coming through? It looks like they are but I also get an email saying they didn’t because the body was too long. _ From: Ewok [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 6:28 PM To: CF-Talk Subject: RE: Bad Radio Button Well, I actually threw

RE: Bad Radio Button

2004-09-12 Thread guy . mcdowell
I'm just going through a query. When I run my query through SQL Query analyzer, the third record is the one with the flag of '1', when I dump the query the third record is the one with the flag of '1' - but still it's the fifth radio button that gets set to 'checked'. I also have it set up so

RE: Bad Radio Button

2004-09-12 Thread Adrian Lynch
Are you sure you have it looping in a cfoutput with the query attribute set? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 13 September 2004 00:34 To: CF-Talk Subject: RE: Bad Radio Button I'm just going through a query. When I run my query through SQL Query

RE: Bad Radio Button

2004-09-12 Thread Ewok
] [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 4:11 PM To: CF-Talk Subject: Bad Radio Button Alright, this is what I've got input type=Radio name=blnLgBnrActive cfif getInspirationsPEBanner.blnLgBnrActive IS 1value=1 checked=Yes cfelse value=0 checked=No/cfif But what's

radio button dbclick attribute

2004-04-20 Thread Beth Hales
Ihave a form which has 14 radio buttons to give the user a choice of different categories.Once they choose one, there is a search button below which will then take them to the action page.I would also like to be able to give the user a choice of double clicking on the radio button chosen to take

RE: radio button dbclick attribute

2004-04-20 Thread Matthew Walker
form action=""> input type=radio name=test value=test /form -Original Message- From: Beth Hales [mailto:[EMAIL PROTECTED] Sent: Wednesday, 21 April 2004 4:15 p.m. To: CF-Talk Subject: radio button dbclick attribute Ihave a form which has 14 radio buttons to give the

OT: Radio button check

2004-02-25 Thread Robert Orlini
How do I check whether a certain value is checked off on a radio button? The group name is send. The value I want checked is whether it is sendemail. If it is I want an alert to ask that the subject is required. Thx. Robert O. Here is part of what I have so far: if((form.send.value).checked

  1   2   >