User guide
Quick Start Guide
Case notes
Table component
FAQ
Search
Dashboard
Deleted Documents and Access Log
Solving a task
AI Assistant
Manuals
Substitution and Vacation
Suspending, resuming, archiving and deleting a case
Case variables, history and graph
Basic Terms
Uploading Documents, Folders and Revisions
News
Favorites
Navigating the interface
Dashboard widgets
Case Detail
News/Announcements in Team assistant
Case list
Logging In and Out
Account Settings
Task List
Mobile app settings
Reports and Charts
Searching and Listing Documents
Handing Over, Taking Over and Tasks to Pull
Bulk Tasks
Printing a Case
Creating and Editing an Overview
What Is TAS
Form Fields
Tablet Interface and NFC
Overviews
Creating a New Case
Case Events
Case Permissions
Subscribing to an overview by email
Administrator Guide
Platform guide
Administration
Crons
Authentication and Synchronization
SMTP OAuth authentication
LDAP, SAML, Entra ID and NFC: Settings
Configuring authentication modules
Authentication
Vault
DMS attributes
Service Operations
Mobile App Setup for Your Environment
Scheme
XML Process Import
HR agenda and agenda handover
Logs
Archiving
Scripts
Sequences
System Status
News Management
Migrations
Configuration
Plugins
Email Queue
Service Console
AI monitoring
Shared Files
Settings
CSP Headers
CSV Files
Scheduled Tasks
Processing Queues
Maintenance
Administration Menu
Licenses
Dynamic Tables
Usage Statistics
Access Token Settings & Session Expiration
Visual Identity
Template
Prints
Tasks
Task calculations
Automatic task completion and cancellation
Email Task and Notifications
Task types
Smart Event task
Instructions, Sections and Testing a Task
General task settings and solver
Multi-instance
Planning: start, branching and due date
Dynamic conditions: builder
Variable assignment and sections
Variables
Class diagram, object state import and alias candidates
Document list
Text and Multiline text
Checkbox
Number
Variables: overview and common settings
Lists (texts, numbers, dates)
Dynamic Rows
Date
Dynamic list
Sequence
Dynamic Table
Shredding Process
Template graph
Template Tab
Template List
Importing, Exporting and Copying a Template
Template Headers
Case statuses
Roles
Connecting to a different database
Diagnosing services
Hyper-V: Isolated NAT Network with Port Forwarding
Users
Translations
NFC Integration
Events and Rules
AXIOS API
Plans
Axios with Vault
Users
Axios with SSL Certificate
User Detail
Calculations & Functions
Form condition
Other dynamic conditions
Optimization of API calls on dynamic conditions
Filtering in a dynamic sheet using dynamic conditions
Dynamic Conditions: Script
Dynamic Rows: Script
Calculations
Dynamic Tables
Printing and File Generation
Documents in Calculations — Complete Guide
Printing and File Generation in Calculations
DOCX document creation
Other Calculations
How and when calculations run
Calculations API reference: the lib library
Calculations API reference: variables and case
Global Scripts and React Scripts
Integrations
MS Graph
MS Graph - cron configuration
MS Graph v2 (from v5.7.102)
MS Graph - preparing the mailbox
MS Graph (email)
ISDOC.PDF
DocuSign
TAS call module - TAS 2 TAS (process creation via API)
DB View
DocuSign and electronic signatures
ERP and other integrations
Smart Events for Integrations
TAS Forms
TAS Forms
Activating the module on the environment
TAS Forms - secret creation guide for Docker Swarm
Advanced Features & Tips
Filtering in a dynamic sheet using a URL parameter (static)
Optimizing Overviews with a Large Number of Cases
API Documentation
Product
Technical Changelog
Business Changelog
Version Upgrade Guide
Upgrade to v5.19
Upgrade to TAS 5.19 - Key Changes and Removed Features
Upgrading TAS 5.17 to 5.19 – Technical Part (DevOps)
Upgrate to v5.17
Upgrade to TAS 5.17 - Key Changes and Removed Features
Asset Migration from FE to Backend (5.17 Upgrade) — DevOps
Upgrading to v5.7
Lodash upgrade v4.17.x (>v5.5)
Main changes and deprecated features (v5.3 > v5.7)
Highlighting variables in Read-only status (>v5.7.58)
Upgrading to 5.3
Dynamic conditions migration
PDF printing adjustment
Editing Task Description vs Task Instructions
Transpiling forEach to a for loop
Rendering HTML on Caseoverview
Differences between TAS4 and TAS5 - a complete overview
Best Practices for Upgrading from v4 to v5
Using validation functions
Technical details
Server prerequisites
Security and Data Protection
Security
TAS Operations Runbook
Technological architecture
News / Important information
Microsoft Disabling Basic Auth for SMTP
End of EWS support and transition to Microsoft Graph
Adjustment in EWS after MS Exchange update (29.04.2025)
Security notices
Getting Started
- All Categories /
- Administrator Guide
- Calculations & Functions /
- Global Scripts and React Scripts
Global Scripts and React Scripts
Administration → Scripts manages three kinds of shared code that templates and prints simply select, so the code does not have to be repeated in each place separately. This article describes where and how these scripts are used in templates and prints. Creating, editing, importing and exporting them is described in the administrator article Scripts.
| Script type | Where it runs | Where it is selected |
|---|---|---|
| Scripts (Calculations) | On the server, as part of the code of a task calculation section. | The Scripts field on the task's Calculations tab. |
| Scripts (CO) | In the user's browser – the form (dynamic conditions), the Case Overview or a standard print. | The Loaded scripts field in the Conditions window, in the Case Overview builder and in the standard print detail. |
| Scripts (CO React) | In the user's browser, only for the Case Overview and prints of type Print – React built on React components. | The Loaded scripts field in the Case Overview / React print detail. |
Scripts in task calculations
The Scripts field on the Calculations tab (see Calculations on a task and How and when calculations run) offers only active scripts of type Scripts (Calculations). The code of the selected scripts is inserted before the section code, so their functions are directly available in the section under their names – this is not an import but a literal concatenation of the code:
// Skript "CurrencyHelpers" v administraci obsahuje:
function toEur(amountCzk, rate) {
return Math.round((amountCzk / rate) * 100) / 100;
}
// Sekce výpočtu, která tento skript vybrala v poli Skripty, ho může rovnou volat:
const rate = lib.getExchangeRate('EUR');
vars['TotalPriceEur'].setValue(toEur(vars['TotalPrice'].getValue(), rate));If you select several scripts at once, they are inserted in the order in which they are selected in the field. If scripts have the same name or define the same variable/function, the one inserted later takes effect.
Scripts in dynamic conditions
The Conditions window (see Dynamic conditions: builder and Dynamic conditions: script) has a Loaded scripts field that selects which active scripts of type Scripts (CO) are loaded into the browser for the given task together with the condition code. If you select none, all active scripts of this type are loaded automatically.
Scripts in Case Overview and prints
Both the Case Overview and prints have the same Loaded scripts field as dynamic conditions; they just offer a different kind of script depending on whether it is the standard or the React variant:
- The standard Case Overview and standard print offer Scripts (CO).
- The Case Overview and prints of type Print – React additionally offer Scripts (CO React) – typically components such as custom tabs, tables or a progress bar.
If you switch the Print / Print – React toggle on a print, the Loaded scripts field is cleared, because each print type uses a different group of scripts and the existing selection would not make sense for the new group.
If the same logic (exchange rate conversion, company ID (IČO) validation, rendering the same React component) is used by several templates or several prints, it belongs in a shared script – a fix in one place then takes effect everywhere. Keep logic specific to a single task or a single print directly in its code, so you do not have to trace connections between the administration and the template.
If you delete or deactivate a shared script in the administration, it also disappears from all calculations, conditions, overviews and prints that used it. If their code refers to its functions, you will get an error on the next run/save. Before deleting a script, check everywhere it is selected.
Related: Scripts, How and when calculations run, Dynamic conditions: builder, Print templates.