Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
2

You can use the below code or use third-party js like moment to format dates. function GetKPIS(EstruturaKPI){ jQuery.ajax({ url: "SITE/_api/web/lists/GetByTitle('KPI')/items?$filter=Title eq '" + EstruturaKPI + "'", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: ...


1

Get multi-line Text field value : $("textarea[id^='Description']")[0].innerHTML; Set multi-line Text field value : $("textarea[id^='Description']")[0].innerHTML = "Your text"; I hope this helps !!!


1

Add json formatting with the following code { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "debugMode": true, "txtContent": "=if([$Date] > @now, 'Yes', 'No')", "style": { "background-color": "=if([$Date] > @now, '#ff0000', '')" } } Click on the down arrow of behind ...


1

User the following function to Create ListItem in SharePoint List function CreateListItem(myList) { var listMetadataType = "SP.Data." + myList + "ListItem" var listNameInternal = GetListItemEntityTypeFullName(_spPageContextInfo.webAbsoluteUrl, myList); listNameInternal.done(function(data) { listMetadataType = data.d.ListItemEntityTypeFullName; }); $....


1

You can use below code. Note: Here through the line $("[title='Requester']").attr("id"), we are getting th ID of the people picker control whose title is Requester. So You can Replace Requester with the title of your people picker control. And It will work .. if(SPClientPeoplePicker.SPClientPeoplePickerDict[$("[title='Requester']").attr("id")]....


1

You can check if the people picker field is filled or not on click of your form Submit like below: var peoplePickerElement = SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerUser_TopSpan; var usersList = peoplePickerElement.GetAllUserInfo(); if(usersList.length) { console.log("Users added"); } else { alert("This field is required!"); ...


Only top voted, non community-wiki answers of a minimum length are eligible