I think you're going to have to resubmit the page to itself to reload the
page and do the check within a cfif.

Hatton

> -----Original Message-----
> From: Larry Juncker [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 11:00 AM
> To: CF-Talk
> Subject: CFInclude a template based on a radio value
>
>
> HELP PLEEASE!!
>
> I am attempting the following radio button selection and can not for the
> life of me figure out how to ONLY CFINCLUDE with a Yes value
>
>  <b>Would you like one of our sales consultants to give you a
> call?</b><font
> SIZE="+1"> <input TYPE="radio" NAME="Give_a_call" VALUE="Yes"
> onClick="checkInfo()" CHECKED></font><font
> SIZE="-1">Yes&nbsp;&nbsp;&nbsp;<input TYPE="radio" NAME="Give_a_call"
> VALUE="No" onClick="checkInfo()" >No&nbsp;&nbsp;&nbsp;<br>
>
> I have tried the following checkInfo statement and am getting a continuous
> syntax error>
>
> <SCRIPT>
>       function checkInfo(){
>               document.write (Give_a_call);
>               if (this.Give_a_call == "Yes"){
>                       <CFINCLUDE template="InfoRequest.cfm">
>               }
>       }
>   </SCRIPT>
>
>
> Any help with this will be GREATLY Appreciated
>
> Larry Juncker
> Senior Cold Fusion Developer
> Heartland Communications Group, Inc.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to