May 26, 2022 01:03 PM
" Hello Airtable"
Solved! Go to Solution.
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();
May 26, 2022 01:19 PM
Hi @Ujval_Shah ,
You should be able to do this with a formula field with TRIM(string)
May 26, 2022 01:21 PM
It’s throwing error.
ReferenceError: TRIM is not defined at main on line 2
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();