AnsweredAssumed Answered

Custom JavaScript functions in Nintex Forms

Question asked by wrightti on Nov 20, 2018
Latest reply on Dec 4, 2018 by jpmhuls

Hello Nintex community,

 

I have a JavaScript function that fires based off a change using an .on "change" function. I'd much rather us the .on "onmouseout" function, but for some reason, it doesn't work. Basically, Im doing a check on rather a user has entered text into a input field...so far the user would have to click anywhere on the form for the code to fire, or tab. i'd much rather, once the user has finished typing and the cursor leaves that text input, that the function below will fire.

 

Here is my working code below: 

NWF$(".nf-outer").on("change", ".cssDescriptionLine", function () {
   var $row = NWF$(this).parents('.nf-repeater-row').first();

   var description = $row.find(".cssDescriptionLine input");

   var descriptionValue = description.val();

   if (descriptionValue !== '') {

      NWF$("input[value$='Save']").attr('disabled', false);

   }
   else if (descriptionValue === '') {

      NWF$("input[value$='Save']").attr('disabled', true);
   }

});

 

I'd prefer this instead: NWF$(".nf-outer").on("onmouseout", ".cssDescriptionLine", function ()

 

Any ideas on how I could achieve this? Is there a list of working JavaScript functions that work and don't work? Im guess on form events work within nintex forms...and not mouse events.

 

Thank you!

Outcomes