Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Multipile Submit Buttons (Save and Cancel)

$
0
0
Re: Multipile Submit Buttons (Save and Cancel)
Web Connection 5.0
Re: Multipile Submit Buttons (Save and Cancel)
May. 11, 2013
02:54 pm
3S60VZ2RXShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Roy M

There's no correct button - both of them are 'correct' :-)

To detect which button was pressed you can check for Request.IsFormVar(btnSecond.UniqueId) to see if a button was pressed. IOW, the one handler can conditionally check which of the buttons was pressed.

+++ Rick ---


Rick ...Adding another button ... no problem.

What I don't understand is how to change the form post action to reflect the correct button

Is this something that will be handled with JavaScript? Just not sure how to make the form react to the appropriate button

Any advice ....

Thanks in advance

Just add another submit button.

+++ Rick ---


I have the need to put two buttons on a form to designate different actions ... little unclear as to how to do that.

My form as the following associated with the form

<form name="Form1" id="Form1" method="POST" action="saverecord.mcg?Table=client&ID=C00-00000001 " onSubmit="" onreset="">


and the following submit button

<td><input title="Save" type="submit" value="Save" class="SaveButton"/> </td>

When the button is clicked it performs the action recorded with the form action

How do I add another button that will call to a different function ( Such as cancel what I'm doing)

Thanks in Advance

Roy






Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles