Is there any way to edit the button and even show it if it's interesting or not?
If you mean the modal dialog (https://modal.daypilot.org), you can use the "okText" option to change the "OK" button text:
https://api.daypilot.org/daypilot-modal-oktext/