Pre-Populate Fields on Add from Search
To pre-populate fields from extended search parameters when adding a new record, use the following code in the row_rendering event. If the field is a table lookup: If the field is a regular edit field:
To pre-populate fields from extended search parameters when adding a new record, use the following code in the row_rendering event. If the field is a table lookup: If the field is a regular edit field:
var username = Microsoft.AspNetCore.Http.HttpContextServerVariableExtensions.GetServerVariable(HttpContext, "eduPersonPrincipalName");if (!string.IsNullOrWhiteSpace(username))username = username.Split('@')[0];