Plumsail Form Field showing value different than SharePoint Log

Hello,

I have a form with a "Status" field that is just a text field. When I open the form in Edit Mode, I have disabled that field. However, when I open the form, it is disabled, but it shows a value different than what is in the SharePoint log.

I have localStorage.clear(); at the start of my form.

Why would this be happening?

Dear @wbrunner,
That's interesting, shouldn't be anything that affects the field, unless it's set with JavaScript.

Try the following code to see what the value should be when the form renders:

fd.spRendered(() =>{
    console.log(fd.data());
    console.log(fd.field('Status').value);
});

Hi Nikita,
we had same issue a couple of times and used localStorage.clear(); to fix it.
I wonder what is the best place to use it? In spRendered() or outside it?
Also, is it the same instruction for Plumsail Forms for SharePoint (on premise) and Plumsail 3 for Sharepoint 365?
Thank you.
@maurizio.fidanza

Dear @AleStendardo,
Yes, it's part of the forms functionality - we store values before they are submitted in browser's localStorage, this is to prevent data loss if a form is accidentally closed or the connection is lost. You can prevent this behavior by clearing the cache, best done outside of any events - this will make sure no values are read when the form is rendered.

1 Like