Skip to main content
Inspiring
January 23, 2026
Answered

binary to text

Hi, I'm working on some project and need help, I have two text fields "Text1" and "Text2" in text1 there will be binary code I need text2 to translate that into text and show result, is that possible?

Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
January 23, 2026

You can use this in Text2 field as custom calculation script:

function binaryAgent(str) {
  return String(str || "")
    .trim()
    .split(/\s+/)
    .map(x => String.fromCharCode(parseInt(x, 2)))
    .join("");
}

event.value = binaryAgent(this.getField("Text1").valueAsString);

2 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
January 23, 2026

You can use this in Text2 field as custom calculation script:

function binaryAgent(str) {
  return String(str || "")
    .trim()
    .split(/\s+/)
    .map(x => String.fromCharCode(parseInt(x, 2)))
    .join("");
}

event.value = binaryAgent(this.getField("Text1").valueAsString);
Translate
blazbAuthor
Inspiring
January 23, 2026

Thank you so much.

Translate