Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Stewart Steel #1
Flash Forms : conditional cfformgroups possible?
Hi,
I'm trying to get conditional cfformgroups within a flash form.
For example if someone clicks on radio button named Marketing then a
cfformgroup is displayed with marketing details.
The code below doesn't work unless you comment out the "onclick" event.
<cfform method="get" preservedata="true" preloader="no" format="Flash"
skin="haloSilver">
<cfformgroup type="accordion">
<cfformgroup type="page">
<!--- Panel One --->
<cfformgroup type="panel" visible="yes" name="panelone">
<cfinput type="radio" name="jobtype" value="Marketing" Label="Marketing"
onClick="paneltwo.visible = true">
<cfinput type="radio" name="jobtype" value="IT" Label="IT"
onClick="panelthree.visible = true">
</cfformgroup>
<!--- Panel One End --->
<!--- Panel Two --->
<cfformgroup type="panel" visible="no" name="paneltwo" >
</cfformgroup>
<!--- Panel Two End --->
<!--- Panel Three --->
<cfformgroup type="panel" visible="no" name="panelthree" >
</cfformgroup>
<!--- Panel Three End --->
</cfformgroup>
</cfformgroup>
</cfform>
Is there anyway of showing a cfformgroup based on input from the user?
Looking forward to your thoughts.
Stewart
Stewart Steel Guest
-
conditional data binding in flash form
I am having trouble with grid binding in a flash form. When an item is selected in the grid, Detailed info will show up in the panel below the grid.... -
Converting existing forms to the Flash forms
I have forms and I change all the tags on them, but they don't change to the new 'Flash forms' in CFMX 7. Any ideas on this? -
EMBEDDING FLASH MOVIES INTO FLASH FORMS
Is there a way? EMBEDDING FLASH MOVIES INTO FLASH FORMS -
Flash Form conditional display
I'm trying to create a form that displays different variations of text input fields as a function of radio button choices. Example: if a user... -
Can you use flash forms on a cd
Hi, I want to create a form on a cd that the customer can fill in and send the information to us. Does anyone know how to get the information sent... -
Mike Nimer #2
Re: Flash Forms : conditional cfformgroups possible?
The problem is the cffromgroups don't have an ID attribute, so you can't
script access to them. There is an enhancement request for this, that will
allow you to set the id attribute, so you can script it.
hth,
---nimer
"Stewart Steel" <stewart@reremovevebiscuitmedia.com> wrote in message
news:d02sfb$rna$1@forums.macromedia.com...> Hi,
>
> I'm trying to get conditional cfformgroups within a flash form.
> For example if someone clicks on radio button named Marketing then a
> cfformgroup is displayed with marketing details.
> The code below doesn't work unless you comment out the "onclick" event.
>
> <cfform method="get" preservedata="true" preloader="no" format="Flash"
> skin="haloSilver">
> <cfformgroup type="accordion">
> <cfformgroup type="page">
>
> <!--- Panel One --->
> <cfformgroup type="panel" visible="yes" name="panelone">
> <cfinput type="radio" name="jobtype" value="Marketing" Label="Marketing"
> onClick="paneltwo.visible = true">
> <cfinput type="radio" name="jobtype" value="IT" Label="IT"
> onClick="panelthree.visible = true">
> </cfformgroup>
> <!--- Panel One End --->
>
> <!--- Panel Two --->
> <cfformgroup type="panel" visible="no" name="paneltwo" >
>
> </cfformgroup>
> <!--- Panel Two End --->
>
> <!--- Panel Three --->
> <cfformgroup type="panel" visible="no" name="panelthree" >
>
> </cfformgroup>
> <!--- Panel Three End --->
>
> </cfformgroup>
> </cfformgroup>
> </cfform>
>
> Is there anyway of showing a cfformgroup based on input from the user?
> Looking forward to your thoughts.
> Stewart
>
Mike Nimer Guest
-
rrhb59 #3
Re: Flash Forms : conditional cfformgroups possible?
I was reading another thread and apparently there is an "id" parameter that
can be used with "cfformgroup". For whatever reason it is not revealed in the
tag completion assist or in help.
So in the original script you could change the "accordian" group to be:-
<cfformgroup type="accordian" id="accordianGroup">
With your onclick event you could put in a script that says:-
onclick="accordianGroup[1].enabled=false"
(Assuming you wanted to disable "paneltwo").
However, the only thing that happens is that the input fields within
"paneltwo" become disabled. The tab for "paneltwo" does not disappear, or
anything like that.
I am still not sure what the "visible" parameter does since setting it to
"yes/no" "true/false" does not seem to have any effect on what you see, or
don't.
Please do bear in mind that I am a Flash/ActionScript/Flex newbie and that I
am still learning as I go.
rrhb59 Guest



Reply With Quote

