Skip to main content
Nintex Community Menu Bar

JavaScript Syntax for repeating row control?

  • April 20, 2017
  • 6 replies
  • 11 views

Forum|alt.badge.img+7

Hi I'm trying to get the ID of a control (list lookup) in a repeating section. It fires onclick, but I seem to have the syntax wrong because it can't seem to find the ID. I just get "undefined".

Here is what I tried to get me the ID but no luck:

 var ddlA = NWF$(".rptEMS .nf-repeater-row:last .ddlEMSAccess select");

6 replies

Forum|alt.badge.img+14
  • Scholar
  • April 20, 2017

if you have correctly set up classes to single controls it should work.

can you post your configuration?


Forum|alt.badge.img+8

Syntax should be as : 

NWF$(".css-class-of-your-repeating-section .nf-repeater-row:last .css-class-of-your-dropdown-list select")


Forum|alt.badge.img+14
  • Scholar
  • April 24, 2017

, do you mean there is a problem with ‌'s selector?

NWF$(".rptEMS                              .nf-repeater-row:last .ddlEMSAccess                    select");
NWF$(".css-class-of-your-repeating-section .nf-repeater-row:last .css-class-of-your-dropdown-list select");

Forum|alt.badge.img+8

Yes


Forum|alt.badge.img+14
  • Scholar
  • April 25, 2017

could you be more specific?

as far as I can see his and yours selectors are just the same (apart of class names)...

I've tested it and it worked for me. as I said he just need to correctly setup classes to the controls.


Forum|alt.badge.img+8

Just shared the standard syntax to access controls inside a repeating section. As you suggestion is correct.