Haven't tried this, but maybe you could set the value in a hidden form field to indicate which button was clicked?
-----Original Message----- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 12:43 PM To: CF-Talk Subject: cfform tasks before submit Hi, i have a cfform with 2 buttons: 'Move to next step' & 'Move to previous step' Irregardless of what button is clicked i need to do some tasks before the form is submitted when the button is clicked I tried to make the buttons type button instead of submit and then do an onclick event. I then used the javascript document.forms.submit() after processing the tasks i needed to do. However the problem with this is that the action page doesnt receieve any information relating to the button that was pressed is there a way that i can get round this or does any one have any advice thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258918 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

