Skip to main content
Inspiring
January 23, 2026
Answered

binary to text

  • January 23, 2026
  • 1 reply
  • 42 views

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?

Correct answer Nesa Nurani

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);

1 reply

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);
blazbAuthor
Inspiring
January 23, 2026

Thank you so much.