Forum Discussion
SubmitForm on NewForm from SharePoint Customize Forms Not Working
My gut feeling here thinks you have some kind of error happening. Have you customized and defaults on form fields or update properties on any cards?
Usually if edit is working and new isn’t. It’s because you might be referencing a ThisItem.ID and on a new form you don’t have that ID yet because the Item doesn’t exist in SP and doesn’t have an ID till it’s submitted. You have to work around it differently if that is the case here?
- StaceyLaneyAug 12, 2020Copper Contributor
ChrisWebbTech - this sounded possible, but in checking all of the datacards added to the NewForm, none have "ThisItem.ID" - each reference "ThisItem" and their respective fields. The DueDate datacard was customized so that the default date is Today()+14 - see attached screenshots
- Aug 12, 2020Go to the form itself, and onsuccess/onfailed put in a set(varSubmit,"Success") and "Failed" for each, could even set(varSubmit,"Not submitted") on app load, then stick a label on your screen after hitting save and for the text put in varSubmit. See what is happening there.
- StaceyLaneyAug 13, 2020Copper Contributor
ChrisWebbTech - I feel really silly, but I found the problem: there was simply a required field that was on the view and edit forms that was NOT on the new form. (facepalm)
Sorry to waste your time on this one, but thank you!