Skip to main content
Nintex Community Menu Bar
Question

How to JS-Insert

  • Oct 15, 2025 2:30 PM UTC
  • 4 replies
  • 104 views
  • Translate All

Forum|alt.badge.img+6

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+6
  • Author
  • Scholar
  • Oct 15, 2025 4:43 PM UTC

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

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Oct 15, 2025 10:29 PM UTC

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.

Translate

Forum|alt.badge.img+6
  • Author
  • Scholar
  • Oct 16, 2025 1:55 PM UTC

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

https://imgur.com/a/d4Dft04

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Oct 17, 2025 2:50 AM UTC

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.

Translate