
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎May 26, 2022 01:03 PM
" Hello Airtable"
- need to remove initial white-space from the text in the script.
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎May 26, 2022 01:28 PM
It sounds like you are putting this in the scripting block. This formula will only work in a Formula type column.
Without knowing what your script is you can try something like:
let text = " Hello World! ";
let result = text.trim();

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎May 26, 2022 01:19 PM
Hi @Ujval_Shah ,
You should be able to do this with a formula field with TRIM(string)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎May 26, 2022 01:21 PM
It’s throwing error.
ReferenceError: TRIM is not defined at main on line 2

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎May 26, 2022 01:28 PM
It sounds like you are putting this in the scripting block. This formula will only work in a Formula type column.
Without knowing what your script is you can try something like:
let text = " Hello World! ";
let result = text.trim();
