mrackley / StratusForms

Lightweight InfoPath alternative for SharePoint 2007,2010,2013,2016,2019 and Office 365
82 stars 36 forks source link

Delete / clear field #19

Open btroop202 opened 6 years ago

btroop202 commented 6 years ago

Good day, I have a text and date field where if I remove the data from the form, it is cleaned out of the JSON, but not the SP col. So when you reopen the record the value is back. Is there a trick I am missing?

Thanks, Darrin

mrackley commented 6 years ago

This was done on purpose because of an earlier request to have the value in the list field overwrite the value in the form. So, if there is a value in the list field the forms should populate with that value even if it's blank. I'll give it some thought.

warwickbuilds commented 6 years ago

is this in version 1.5 or only 1.55?

I was under the impression the code never actually read any values from column, only from it's JSON.

Deleting a value from the form should write the null value back to SP.

Ideal senarios is if a input it designated to save to a list column, upon load of the form it should check the list and compare with the JSON, with the list value overriding if different.

btroop202 commented 6 years ago

v1.5 delete would be nice as what if a user enters something wrong