문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top