Try it
  • Examples
  • Features
  • Testimonials
  • Partners
  • Pricing
  • Support
    • Sintel Apps Help
    • Sintel Apps Release History
    • Sintel BI Help
    • Sintel BI Release History
    • Webinars
    • How to video series
    • Ask the community
    • Submit a ticket
    • Request a demo
    • Compare us
  • Blog
  • Examples
  • Features
  • Testimonials
  • Partners
  • Pricing
  • Support
    • Sintel Apps Help
    • Sintel Apps Release History
    • Sintel BI Help
    • Sintel BI Release History
    • Webinars
    • How to video series
    • Ask the community
    • Submit a ticket
    • Request a demo
    • Compare us
    • For Schools
  • Blog
  • Get Started
How can we help?

Search for answers or browse articles about Sintel Apps

Filter by categories Clear Results
  • About Sintel Apps

    • What is Sintel Apps? (Product Overview)
    • Understanding the Underlying SharePoint List
  • Sintel Forms to Sintel Apps Migration

    • Sintel Forms Is Now Sintel Apps – What You Need to Do
    • Upgrading from Sintel Forms to Sintel Apps – Migration Guide
    • JavaScript API Differences Between Sintel Forms and Sintel Apps
    • Migrating Workflow History using a custom Microsoft Flow
    • What Does Not Migrate Automatically
    • Migration Checklist
    • Information for IT Administrators – Installing Sintel Apps
    • How to Find Existing Sintel Forms in SharePoint
    • Convert a classic SharePoint site to a modern one
  • Getting Started

    • Add Sintel Apps to Your Microsoft 365 Tenant
    • Configure Sintel Apps on a Site
    • Using Site Collection App Catalogs
  • Designer Overview

    • Sintel Apps Designer – Overview (Tour)
    • Layout Tab (Overview)
    • Workflow Tab (Overview)
    • Settings Tab (Overview)
    • Logic Tab: Create your First Rule (Overview)
  • Layout

    • Layout Tab (Overview)
    • Calculated Fields
    • Fields

      • Text Fields (All types explained)
      • Choice Fields (Dropdown vs Multi-Choice)
      • Lookup Fields
      • Person and Group Fields Posted
      • Number, Currency & Percentage Fields
      • Yes/No Field
      • Date & Date Time Fields
      • Hyperlink Field
      • Picture Fields
      • Related List
      • Related Library
      • Enhanced Rich Text Editor
    • Widgets

      • Attachments
      • HTML Widget
      • Workflow Status Widget
      • Workflow History Widget
      • Buttons
    • Theme

      • Data Import Export
      • Theme & Styling
  • Logic

    • Logic Tab: Create your First Rule (Overview)
    • Understanding Conditions
    • Understanding Steps
    • The JavaScript API

      • Using the JavaScript API in Logic
  • Workflow

    • Workflow Tab (Overview)
    • How to Build Common Workflow Patterns in Sintel Apps
    • How to Configure Workflow Email Notifications
    • Actions

      • The Workflow Actions API Integration
      • Workflow Actions – Configuration and Settings
      • Configuring Power Automate Webhook
    • Statuses

      • Workflow Statuses – Configuration and Settings
  • Settings

    • Settings Tab (Overview)
    • PDF Export
    • Conversations
    • After save script
    • Confirmation Screens
    • License Information
    • Upgrade from Sintel Forms
    • Custom Emails
    • Form Viewer

      • Actions Menu Behavior
      • Enable Concurrent Access
      • After save/action redirect to
      • After close redirect to
    • External Access

      • External Access & Sharing
      • Configuring External Access Permissions
  • Product Updates

    • CSP Content Security Policies (CSP) Enforcement for SPFx Apps
    • Sintel Apps Content Delivery Network CDN
    • Release History
    • How to update Sintel Apps
  • Building Forms

    • How to Create a New List
  • End-to-End Examples

    • Articles coming soon
  • Checklists & Best Practices

    • Sintel Apps – Project Planning & Best Practices
    • Project Requirements Template
  • Advanced Configurations

    • The Workflow Actions API Integration
    • Using the JavaScript API in Logic
    • Configuring External Access Permissions
  • Troubleshooting

    • Failed to query permissions
    • Convert a classic SharePoint site to a modern one
  • Administration

    • Sintel Apps Email Delivery
< All Topics
You are here:
  • Main
  • Settings
  • After save script

After save script

Posted18 February 2026
Updated11 June 2026
ByAmy Dermody
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%

The After Save Script option allows you to run custom JavaScript after a form has been successfully saved. This can be useful for automating actions such as updating field values, generating reference numbers, or performing custom business logic.

Example: Automatically Generate a Title

The following script creates a formatted title based on the record’s ID.

//use an after save script to set a title let oldTitle = getValue("Title"); var idValue = getValue('ID'); // Assuming this returns a number var counter = idValue.toString().padStart(6, '0'); // Convert to string and pad with leading zeros if necessary var acro = 'EXP-'; var newID = acro + counter; // Concatenate directly as counter is already the correct length if (oldTitle != newID){ setValue('Title', newID); }

 

What This Script Does

When a record is saved, the script:

  1. Retrieves the current value of the Title field.
  2. Retrieves the record’s ID value.
  3. Converts the ID to a six-digit number by adding leading zeros if required.
  4. Adds the prefix EXP- to the formatted number.
  5. Updates the Title field with the generated value if it is different from the current title.

 

This pattern is commonly used to generate user-friendly reference numbers such as:

  • EXP-000001
  • INV-000123
  • CASE-005678
  • PROJ-001245

 

Using an After Save Script ensures that the record has already been assigned an ID before the title is generated, making it ideal for creating unique identifiers based on the record’s saved ID. You can then add that ID to a form header so each form as idenitfiable reference number that makes sense for your specific app.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
Please Share Your Feedback
How Can We Improve This Article?
Table of Contents

Sintel Apps

Create apps on Microsoft 365 in minutes with no code.

Address

River House
Blackpool Park,
Cork, T23 R5TF,
Ireland

Support

  • Product help
  • Community site
  • Submit a ticket
  • Compare us

    Contact us to

    • Book a demo
    • Request a license
    • Become a partner

    e-mail: info@sintelapps.com
    tel: +353 (0) 21 245 2935

    Follow us

    • Follow
    • Follow
    • Follow

    © Copyright 2026 | End User License Agreement | Privacy Policy | Terms Of Use

    Sintel Apps
    Sintel Apps Assistant
    Get instant answers and support
    Connecting to Sintel Apps Assistant…
    Sintel is thinking…
    We use cookies to collect and analyse information about the users of this website. Please click 'I accept' to consent to the use of this technology.