We help IT Professionals succeed at work.

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

Quack
Quack asked
on
107 Views
Last Modified: 2017-06-26
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?
Comment
Watch Question

erikTsomikSystem Architect, CF programmer

Commented:
try something like this

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

 <input type="button" name="Reset" value="Reset">
Quackdeveloper

Author

Commented:
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?
Quackdeveloper

Author

Commented:
<cfif isDefined("FORM.Reset")> ... is the FORM the name of the cfm file?
developer
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
erikTsomikSystem Architect, CF programmer

Commented:
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">
Quackdeveloper

Author

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