Activate Button with an automation rule

Hello SeaTable Team,

currently I use a button to creat a PDF from pagedesign.
Is it possible to write an JavaScript code, that “clicks the button” and build it in an automation, that is activated if the data meets a specific condition?
If it is possible, what would the code look like? (I have limited knowledge in programming)

That is not possible. Javascript is executed in the browser, python is executed on the server.
Therefore, Javascript can not be executed by an automation.

Is it then possible to activate a button (click it) by using a Python script with an automation insead of JavaScript?

No, there is no api endpoint for “clicking a button”. Generally, PDF generation is currently not supported via scripts/api.

Probably Gotenberg might be a Solution: GitHub - gotenberg/gotenberg: A developer-friendly API for converting numerous document formats into PDF files, and more!

It allows pdf Generation via API.

By the way: there will be a Talk on the SeaDays about this topic.

This is an automation rule, “Periodically run for records meeting condition” → “convert page to PDF”. Can this meet your need?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.