<snap>
> dualSubmit(frm1)
> {
[quoted text clipped - 6 lines]
> this statement
> isDefined(mycfform.submit)
I suspect that it does work (add some trace statements to your
processing form to check it yourself), the problem is that you are
sending TWO separate requests. CF still processes BOTH, but you get
the output from only one of them - MOST of the time it will be the
last request.
So, if you can not get around the need of two forms you will have to
invent a way of processing two separate requests and combining the
output in one response [session scope might help you here].
rhaazy - 26 Jun 2008 20:34 GMT
> <snap>
>
[quoted text clipped - 17 lines]
> invent a way of processing two separate requests and combining the
> output in one response [session scope might help you here].
After doing much research I have learned a lot.
Perhaps someone can verify what I "think" I understand...
You can not submit two forms, because one a document submits a form,
the document loses focus.
Fix would be to create a script that would copy data from one form
over to a hidden field in the form I am submitting.
Specific to my problem, this is impossible, as cftree selected node
path variable is not created until the form the tree resides in is
submitted.
Fixed the problem by redesigning the page entirely, one form with two
submit buttons.