AnsweredAssumed Answered

Nintex form rule doesn't fire when select dropdown is changed via JavaScript

Question asked by baron on Aug 26, 2015
Latest reply on Mar 8, 2018 by tonmon

Hello. I have a Nintex 2013 form that is using a choice dropdown to hide another form element based on a specific selection. The rule works perfectly if I manually select the option from the dropdown, but I'm trying to have the choice field update via jQuery (it is pulling the current user's office from Active Directory via a REST service call). This works great, but my Nintex rule doesn't fire when I update the field via JavaScript!

 

Here's the jQuery that updates the form field:

 

$('.dlo-dropdown select').val(officeValue); // this updates the form field and should fire the Nintex rule. the field updates, but the rule doesn't fire...

 

I have also tried triggering the on change event with jQuery, but no luck there either.

 

$('.dlo-dropdown select').val(officeValue).trigger('change'); // again this updates the form field and should fire the Nintex rule, but the rule doesn't fire...

 

Anyone had or found a work around for this issue?

Outcomes