CADPHP execute php.file on click button

HI,
The cadphp is working properly when code “cadphp:p1:test” is added at the beginning of the line. But i have two questions:

  • Is it possible to execute it when a button is clicked?
  • Is it possible to pass a parameter to the php code?
    if not, how can I do it with grav?

Best Regards,
Ricardo