Question

I have a customized form where it uses sessions to pre-populate some of the fields based on the previous item from a list.

The sessions looks like the following:

sessionStorage.setItem("systemStuff" + index, stuffItem[index].System);

Works great.

However when we send the link to the customized form via email, the pre-populated fields are blank.

Is this because it's an empty session value?

Sorry, still trying to figure out SharePoint.

Was it helpful?

Solution

sessionStorage object is stored in web browser.it gets deleted when browser tab is closed. It stores values only for single session. If you want to pre-popluated fields for user who open links in email, Local storage will not work, user can open email in any machine.

Best way to do this is pass via query string and read query string and pre-popluate.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top