Hi All,
I want to add DropDown inside data table that is populated with the another list title columns.
we know how to add Normal DropDown control loading with static values and also load dynamic values.
The following code is add & loading normal DropDown with other list column values using pnp JS code:
fd.spRendered(function() {
var varcolTitle=[];
//Getting other list name is BroadBandPricing
pnp.sp.web.lists.getByTitle("BroadBandPricing").items.select("Title,ID").getAll().then(function(allItems){
for(var i = 0; i < allItems.length; i++)
{
var varcolTitle=allItems[i].Title;
console.log('varcolTitle');
console.log(varcolTitle);
}
fd.field('ddlInternetPlan').widget.setDataSource({data: [varcolTitle]});
//loading values into DropDown controls
});
});
is it Possible to add DropDown inside datatable to load another list column values?
we are using sharepoint online with plumsail form version.