edit the Buttons edit --> update button
edit the Buttons edit --> update button
Godrules500
Posts: 25Questions: 13Answers: 0
Hello, I am trying to use buttons, but I have something interesting that I am needing to do. I want to keep the functionality of the edit button meaning I want it to pop up the same modal. I even want them to hit update the same way. However, I want to intercept it after they hit update. I am needing to get the values so that I can run some calculations after they hit update. Is this possible?
This discussion has been closed.
Answers
If you just want to modify the data submitted to the server use
preSubmit
.Allan
Ah. I didn't know that existed. In the code below, is there anyway to do it before new Editor() is called? That way I can do it from the controller level?
The code you have pasted above is C#, while the event I linked to above is a Javascript event. You would need to use the
preSubmit
event in your Javascript. That will modify the data before it is submitted to your C# controller.Allan