This topic is locked
[SOLVED]

 save record code in function

4/7/2015 5:27:51 AM
PHPRunner General questions
C
cristi author

I have an modal pop up (This one) in an add data page - more specifically when an user select a value from a drop down a specific popup is triggered (I use javascript onload event for this).
I want to know if it is possible to save the record after the user press the O.k. button from the modal window - in their documentation i see that it is possible to pass custom functions for their "O.K.", "Cancel" buttons but I don't know what code is suitable to save the edited record - basically i want to transfer phprunner save record button functionality (but in javascript) to this modal popup O.K. button.

Sergey Kornilov admin 4/7/2015

Here is how you can click Save button programmatically from Javascript code:

$("#saveButton1").click();
C
cristi author 4/15/2015



Here is how you can click Save button programmatically from Javascript code:

$("#saveButton1").click();



So I simulate a click on the save button - Thank you!