Page 1 of 1

SPForms will not save new items

Posted: 03 Apr 2018
by Rift
I have a client requesting to use a list as "Lookup" for a total of 65 questions. The "Answer" List contains three items. Yes,No,N/A. They want to be able to add/remove/modify their answers on the fly. Knowing they are on O365 there is a limit of threshold lookup columns and that will not work. I decided to make this work with a rest call and then dynamically append the options to all the select fields(questions) with their answers from the answers list. I was able to achieve this but when I save the form It directs me to a the error generic SharePoint page and gives me a correlationid. I checked the console and I get a "Form contains a file input, but is missing method=POST and enctype=multipart/form-data on the form. The file will not be sent.". If I remove my code that appends these new options to each select field I am able to save the form. I have also changed the DOM manually to one of the fields by adding an additional option and I get the same results. My question is.... What is the proper way to do this in SPforms? Is SPforms expecting blank values all the times since the select fields don't have options in the column settings? Thanks!

Re: SPForms will not save new items

Posted: 04 Apr 2018
by Nikita Kurguzov
Dear Rift,
The best solution here would be to use Text Fields that are rendered as Lookups on the Form. That should be possible to achieve using Template: Custom

Please, check out this article for an example of how it can be implemented - https://spform.com/custom-fields/custom ... nline-mode