This topic is locked
[SOLVED]

 Read Displayed Field When Custom Button Pressed

5/13/2013 9:42:56 PM
PHPRunner General questions
K
KennyB author

I added a custom button to add page and when it is pressed I am looking to read data from the input screen.

  1. how do I know if the button has been pressed?
  2. I beleive i can stick code in the javascript onload event to get the field data for the controls..

    can i get the BUTTON here too and see if it was pressed?
    Thanks in advance..

Sergey Kornilov admin 5/14/2013

If you insert your button via 'Insert button' function in Visual Editor you can add your Javascript and PHP code right there.

K
KennyB author 5/15/2013



If you insert your button via 'Insert button' function in Visual Editor you can add your Javascript and PHP code right there.


Thank you for quick response. I ended up moving my code to the SAVE button on Add screen and removed custom button. Worked perfectly in there. Not sure why in other place. But problem solved