cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Repeating section populated dynamically drop down list options

Hi,

I have a drop down list in the second repeating section, where the option values are populated dynamically using JavaScript below.

var rs1drpFirma= NWF$('[data-controlname="rs1drpFirma"] select');

NWF$('[data-controlname="rs1drpFirma"] select').on("focus", function ()
{
   var length = $('[data-controlname="rs0FirmaAdi"]').find("input").not(":input.nf-hidden-associated-control").length;
   var optionsAsString = "";
   var list = $('[data-controlname="rs0FirmaAdi"]').find("input").not(":input.nf-hidden-associated-control");

   for (var i = 1; i < length; i++)
   {
      optionsAsString += '<option value="' + list.value + '" data-nfchoicevalue="' + list.value + '">' + list.value + '</option>';  

      $(this).html(optionsAsString);
   }
});

This works fine. When I submit this form values, I am getting a sharepoint error. How can I fix this problem?

 

Thanks

0 Kudos
Reply
1 Reply
Workflow Hero

Re: Repeating section populated dynamically drop down list options

What's the error that you're receiving?




SharePoint 2013 On-Prem | Nintex Forms & Workflow Enterprise
0 Kudos
Accept as Solution Reply