cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
franco89
Nintex Newbie

JavaScript Syntax for repeating row control?

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

0 Kudos
Reply
6 Replies
Automation Master
Automation Master

Re: JavaScript Syntax for repeating row control?

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

can you post your configuration?

Reply
chaitra_b_c
Nintex Newbie

Re: JavaScript Syntax for repeating row control?

Syntax should be as : 

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

Reply
Automation Master
Automation Master

Re: JavaScript Syntax for repeating row control?

, 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");
0 Kudos
Reply
chaitra_b_c
Nintex Newbie

Re: JavaScript Syntax for repeating row control?

Yes

0 Kudos
Reply
Automation Master
Automation Master

Re: JavaScript Syntax for repeating row control?

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.

Reply
chaitra_b_c
Nintex Newbie

Re: JavaScript Syntax for repeating row control?

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

Reply