Skip to main content
Nintex Community Menu Bar

Want to add a new row to a Nintex forms Repeating section through JavaScript method scenario: I have a db that have a products. when user search for a product in a nintex form textbox it will call the web api through javscript and display those resu

  • May 30, 2017 6:10 PM UTC
  • 6 replies
  • 65 views
  • Translate All

Forum|alt.badge.img+1

Want to add a new row to a Nintex forms Repeating section through JavaScript method

scenario:

I have a db that have a products. when user search for a product in a nintex form textbox it will call the web api through javscript and display those results in panel. When user selects particular product it has to add that particular product to the repeating section row (like adding child items to the parent element)

can you please suggest how to add rows to a repeater control through javascript method instead of adding through the repeater control add new row link button

6 replies

Forum|alt.badge.img+11
  • Nintex Partner
  • Jun 12, 2017 3:55 PM UTC

Hi Prasanth,

Just thinking out lout here: have you considered/investigated if you could populate a choice dropdown list with the database products in the repeating table using JavaScript and then have the user use the Repeating Section controls to add new rows and select the product from the dropdown? If necessary you could add a text field in the repeating section that filters the items in the dropdown list.

KR

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jun 13, 2017 5:13 PM UTC

you can do it eg following way

NWF$(".RSClass a.ms-addnew").click();‍

RSClass is CSS class set for repeating section control

Translate

Forum|alt.badge.img+1
  • Author
  • Jun 14, 2017 4:54 AM UTC

Thanks Marian,

I have tried like below

 NWF$('.rsPO').find('a').click();

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jun 14, 2017 7:46 AM UTC

so can the question be closed?

Translate

Forum|alt.badge.img+1
  • Author
  • Jun 14, 2017 12:48 PM UTC

Yes,

please close the ticket

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jun 14, 2017 1:29 PM UTC

you're author of the question, you should select that helped you and mark correct answer.

Translate