Skip to main content
Nintex Community Menu Bar

Select the Option Collection by Control ID

  • January 21, 2019
  • 0 replies
  • 5 views

Forum|alt.badge.img+5

Goal: select the option collection of a SQL Request Control drop down menu, telling Nintex Forms to save the ID of the drop down menu into a JavaScript variable

Problem: NWF$('#' + varSqlRequestCtrl + ' option') does not select the desired option collection

Issue: varSqlRequestCtrl is set to the ID of the <input> element rather than the <select> element

Solution: delete the "_hid" off the end of the variable value

Question: is there a way to do this better than deleting the last 4 characters of the control ID string?