1
0
-1

any help on how to populate data to repeat under repeat block?

Form.setInstanceCount("data.PkgContent" , data.PkgContent , 3); //repeat counts come dynamically(not always 3)
// Form.setInstanceCount(Form.getItemFromPath("data.PkgContent"), data.PkgContent, 3);
Util.addRepeatContent(Form.getItemFromPath("data.PkgContent") , repeatData);// i tried assigning values on field level from data array ,after commenting this line

issues:

  1. repeat blocks are displayed only on 2nd click on page (needs 2 times page load)
  2. assigned values to field levels are not populating

    Attached the repeat block image and json data. 

    [{"Package":"pakg1",
    "ProdContent":[{
    "ProductType":"type1",
    "ProductDetail":"detail1"
    }, {
    "ProductType":"type2",
    "ProductDetail":"detail2"
    }, {
    "ProductType":"type2",
    "ProductDetail":"detail3"
    }]
    }, {
    "Package":"pakg2",
    "ProdContent":[{
    "ProductType":"typeX",
    "ProductDetail":"detailsX"
    }, {
    "ProductType":"typeY",
    "ProductDetail":"detailsY"
    }]
    }];

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi,

      You might find this short video useful:  All about repeating data


        CommentAdd your comment...