AnsweredAssumed Answered

Nintex Forms - use substring in Javascript

Question asked by on May 21, 2018
Latest reply on May 22, 2018 by



I am trying to extract part of the URL from a Hyperlink control.  In the Customer JavaScript - function, I am trying to use substring to extract the URL.  Here is the sample JaveScript:


function showText()  {   
var display = NWF$("#"+txtHyperLink);   


display = display.substring(0, 25);




When I use a button control to execute the   showText function, the alert does not display on the form.  If I remove the display.substring from the function, the alert will display.   Can I not use Substring in the JavaScript function?   If not, is there another way to extract the URL from the Hyperlink control?  Or can I use the fn-substring inline function in JavaScript?