Skip to main content
Nintex Community Menu Bar
Question

How to JS-Insert

  • October 15, 2025
  • 4 replies
  • 46 views

Forum|alt.badge.img+2

must be missing some step. following the example 

add the JS-Insert Plugin.

on the form add the control

where and how do I put in the JavaScript code? do I need to add the open and close script tag

when I add some code keep getting Workflow cannot be loaded, saved or published at this time.

 

anytime I have the atob() it will not saved. have the Load JQuery set to Yes

 

works

4 replies

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 8 replies
  • October 15, 2025

more testing. if I have the first 2 line. it will saved. only when I have the atob function that it failed to saved. and that the one I want to use

let text = "Hello World!";
let encoded = btoa(text);
let encodedx = atob(encoded);


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • 2620 replies
  • October 15, 2025

Hi ​@RC1101,

Welcome to the community.
 

must be missing some step. following the example 

where and how do I put in the JavaScript code? do I need to add the open and close script tag

 

The code is inserted into the “JS to Execute” configuration field of the plugin.
No tags are needed. Simply paste the code as shown in the example.
Please see the attached form export of this example.
Please note that the code is “on 'blur'”, which means that the code is only executed once you have clicked into the text field and then out of it.


Forum|alt.badge.img+2
  • Author
  • Rookie
  • 8 replies
  • October 16, 2025

Thanks, I imported the form. and this is what I’m getting. seem like it doesn’t like atob()

https://imgur.com/a/d4Dft04


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • 2620 replies
  • October 17, 2025

Hi ​@RC1101,

Oh IC.  This was working with no issues.  I am having our development team investigate why you cannot save when using the atob() function. The alternative would be to create your own plugin for decoding.