SPForms will not save new items
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!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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
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
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests