Then what I am reading is that ColdFusion simply doesn't do a correct job of
processing cfform submit buttons when used in a cfwindow. As much as I would
like to get it to run "correctly" I have opted for making this 2 separate small
forms and then testing the existence of a button that is uniq
When using a regular HTML form, we rely on the browser to act like a regular
browser. Only the 'activated' elements of a form are sent. Form elements with
the same name and are 'activated' will be received by the server as a
comma-delimited list.
In a regular form, only the button that is pr
> You will need to have a different name, and then check that value. Since
> your buttons both have the same name, the value for both will be in the form
> scope as you have seen.
Again, that's not correct. You can certainly have submit buttons with
the same name and different values.
There are
> ...and so on. With HTML forms, if two or more form elements have the same
> name, the values of all active form elements with that name will be put into
> a comma-delimited list and show up in ColdFusion as a single variable with a
> list of values, as you experienced. This is great for checkb
When I change the cfform to form, it works properly, but that will stop my
cfinput and cfselect tags from working.
Is it possible that there is something about the use of cfform that is causing
this?
~|
Want to reach the Cold
Thanx for all the feedback. I'm about 95% sure that I've done all this before
and made it work. And the examples given have been tried too. There must be
something different in my case. This simple use of 2 buttons on a page worked
for me. But when I put it back into the live case it fails, so
You will need to have a different name, and then check that value. Since
your buttons both have the same name, the value for both will be in the form
scope as you have seen.
I always just do a regular button, and change the form action via
Javascript.
Cheers,
Rob
On Wed, Apr 28, 2010 at 8:24
You're getting that result because both buttons have the same name.
On Wed, Apr 28, 2010 at 5:24 PM, John Pullam wrote:
> Can anyone tell me what I'm doing wrong or what I need to do to get a single
> value? My code for the buttons is as follows:
>
>
>
>
> When I CFDump it, FORM.Choose is Ch
> I have seen several examples of using multiple form
> buttons on a single form. The idea is that you can
> get the value of the respective form variable when
> you are posted and then take the appropriate action.
Usually that's triggered by the name of the form button that was clicked,
not the
I'm using cf9 on iis7 and when I put what you've provided into a form,
form.choose is either equal to change, or full, depending on which button
was clicked.
On Wed, Apr 28, 2010 at 6:24 PM, John Pullam wrote:
>
> I have seen several examples of using multiple form buttons on a single
> form. Th
I have seen several examples of using multiple form buttons on a single form.
The idea is that you can get the value of the respective form variable when you
are posted and then take the appropriate action.
But I'm getting odd results. Instead of getting a single value, I get both
values every
11 matches
Mail list logo