| Setting | What it does |
|---|---|
| Icon | A recognizable icon for the button. |
| Location | Where the button appears in Daftra (for example, on the Invoice index page). |
| Active / Not Active | Whether the button is currently shown. |
| Order | The button's position relative to others. |
| Parameters / Attributes | Additional values the button passes or uses. |
| Field | What it does |
|---|---|
| Name | A name to identify the script. |
| Depend on | An optional plugin the script depends on (Select a Plugin). |
| URL | The page path where the script should run (for example, /owner/invoices/view). |
| Match URL exactly | When on, the script runs only when the page URL matches the value exactly — not just any page that starts with it. |
| Active Script | When on, the script is live and will execute. When off, it's saved but won't run. |
| Script | The code editor where you write the script itself (wrapped in <script> tags). |
💡 Keep scripts inactive while you're still testing — toggle Active Script on only when you're ready for it to run on real pages.