good day !
I want to populate a dropdown field (fields from plumsail form) with values from another list from another site with Title. It works, but sho not all items. List have 1500+ items, returned only 50.
From manual
function populateDepartmentCodes(){
//specify your site URL
var siteURL = 'http://intranet/sites/help/';
let web = new Web(siteURL);
web.lists.getByTitle('Products').items.select('Title').get().then(function(items) {
fd.field('DropDown1').widget.setDataSource({
data: items.map(function(i) { return i.Title })
});
//set the dropdown with the previously selected value
// fd.field('DropDown1').value = fd.field('DepartmentCode').value;
});
}
fd.spRendered(function() {
//call function on from load
populateDepartmentCodes();
//fill SharePoint field with the selected value
fd.field('DropDown1').$on('change', function() {
// fd.field('DepartmentCode').value = fd.field("DropDown1").value;
});
});