Link to home
Start Free TrialLog in
Avatar of Quack
QuackFlag for United States of America

asked on

I have a Cold Fusion reset button that's not working w/ javascript turned off

I need a reset button to work w/in a Cold Fusion form without javascript as it has be functional without js turned on. Does anyone have any ideas? links to options? examples?
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

try something like this

<cfif isDefined("FORM.Reset")>
    <cflocation url="#cgi.script_name#" addtoken="false">
</cfif>

 <input type="button" name="Reset" value="Reset">
Avatar of Quack

ASKER

Thanks...I'll try that...another suggestion that's come to me but I'm positive on how to write the logic is below:

1. create a form for the reset button on the same file...create the logic to check the reset button is being selected.

2. post the form back to the same page and reset the form fields  to ""

Do you have any examples I could lean on for this?
Avatar of Quack

ASKER

<cfif isDefined("FORM.Reset")> ... is the FORM the name of the cfm file?
ASKER CERTIFIED SOLUTION
Avatar of Quack
Quack
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try changing the button type to submit

<cfif isDefined("FORM.Reset")>
    <cflocation url="#cgi.script_name#" addtoken="false">
</cfif>

 <input type="submit" name="Reset" value="Reset">
Avatar of Quack

ASKER

no solution solved the issue...still unresolved at this point...deferred until end of July