Skip to main content
Nintex Community Menu Bar

JavaScript Syntax for repeating row control?

  • Apr 20, 2017 9:04 PM UTC
  • 6 replies
  • 14 views
  • Translate All

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
  • Apr 20, 2017 10:34 PM UTC

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

can you post your configuration?

Translate

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")

‌ ‌ ‌

Translate

Forum|alt.badge.img+14
  • Scholar
  • Apr 24, 2017 10:55 PM UTC

, 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");
‍‍
Translate

Forum|alt.badge.img+8

Yes

Translate

Forum|alt.badge.img+14
  • Scholar
  • Apr 25, 2017 5:04 AM UTC

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.

Translate

Forum|alt.badge.img+8

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

Translate