title: Run method based on clicked button on listpage form
body: <p>I have created a ListPage form, and placed a button. If this button is clicked I want to run a method. I am aware i can't overwrite methods in a ListPage form, therefore I want to create a method on a table which the form is using.</p>
  
  <p>So, i need to check if the button is clicked from the table method, how can i accomplish is?</p>
  
  <p>I have tried to create a method with:</p>
  
  <pre><code>MenuItem.clicked();
  </code></pre>
  
  <p>But i am not sure how to declare <code>MenuItem</code> so <code>.clicked();</code> is recognized. How can i accomplish this?</p>