Reset Button

Questions and bug reports for current release of CKForms

Reset Button

Postby pjbauer » Thu Jun 17, 2010 2:59 pm

I just noticed that if a field Button/Reset is used - it basically does nothing but clear the form. If you want a Reset Button to return to the previous page instead of just clearing the form data then change line 503 of /components/com_ckforms/views/ckforms/tmpl/default php to include the javascript history.back function when clicked.

Code: Select all
<input name="reset_bt" id="reset_bt" type="reset" onClick="history.back()" value="<?php echo $field->label; ?>" />&nbsp;
pjbauer
 
Posts: 2
Joined: Sat Dec 05, 2009 1:30 pm
Top

Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: Google [Bot] and 4 guests