The reason is that Lookup Form Fields are rendered with different HTML when the target list contains more than 20 items. Wictor Wilén is the Nordic Digital Workplace Lead working at Avanade.For example, the event type (from one of the two tables earlier in the article) is identified, so that your code can branch to the logic that is appropriate for the event.To change the events that the remote event receiver handles, open Solution Explorer, open the Properties window for the remote event receiver, expand the Share Point Events node, and then set only the events that you want to handle to True.Below is a full example of the script we use to set the default value of a Lookup field based on an ID stored in the querystring.
These content pages can’t directly add a function to the body’s onload event.
The add-in doesn't even have to have an add-in web.
There are three add-in events as described in the next sections.
It takes the following parameters: fill Default Values Now that we have the HTML elements that we want to set, we need the values with which to set them.