0

I have an input box in the second row of a html table. When I type in Joe Bloggs, I want it to pull the age of joe from a SharePoint list and place this in the second input box in the second column of the html table.

The SharePoint list contains two columns name and age and it has 80 different unique names

Name: Age:

1 Answer 1

0

Bind event to your input.

Filter SharePoint list item by rest api.

$.ajax({
                        url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('list')/items?$filter=filtercondition&$select=filed1,field2",
                        type: "GET",
                        headers: {
                            Accept: "application/json;odata=verbose"
                        },
                        async: false,
                        cache: false,                            
                        success: function (data, status, xhr) {
                            //bind data
                            console.log("success");
                        },
                        error: function (xhr, status, error) {
                            console.log("error: " + xhr.responseText);
                        },
                        complete: function () {
                            console.log("complete");
                        }
                    })

Set value by jQuery

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.