Skip to main content
Nintex Community Menu Bar

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

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


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.


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

https://imgur.com/a/d4Dft04


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.