You may use the below code:
public static void ChangeFields()
//Open SharePoint site
using (SPSite site = new SPSite("http://<SharePoint_Site_URL>"))
using (SPWeb web = site.OpenWeb())
//Get handle for forms library
SPList formsLib = web.Lists["FormsLib"];
if (formsLib != null)
I had the same error and I was helpless. I found a quick way to fix it without recreating the form from scratch.
Go to List Setting --> Form Setting
Select "Use the default sharepoint form" --> Apply the change
Go to Form setting again and Click on "Delete the custom form"
Open that Form from your Infopath local copy and Publish it again
This will re ...
I managed to add this code as a content editor script in the "Default Display Form" of a list item. It's not a very clean solution, however it shows the attached pictures (all of them) directly in the default display form.
Go to the below URL:
By default, InfoPath service is disabled in the modern admin center:
Once we click on the "Allow" checkbox, we will get the below message, so now this ...
The solution is to remove all standard requires (checkbox required) in the form and to replace that with a validation rule with a good error message showing a detailed info which field has failed
Thats a laborious solution, but it works. Thats a shame Sharepoint Designer does not have any debugging abilities...
You can use repeating tables for the same and you have multiple ways to insert the repeating table in infopath form.
If you have already established connection with your list just add the folder into the form as a repeating table
Repeating Table Example
You can also add repeating table from control section and start from the scratch
InfoPath Repeating ...
It seems you add a infopath form as a content type to the library. If you want to have a form for the library, you will need to go Library settings> Form settings> use a custom form created in PowerApps. You will need to use PowerApps for a custom form
I had the same problem after moving a list to a new server. The people picker field was not working and I tried all the steps mentioned above.
Finally, I deleted the people picker field and then recreated it and tagged it to the appropriate field, targeted group of people, and voila, it worked again. Don't know why, but it worked, it really did.
Hope this ...
Is there some people picker filed in your form?
If yes, please check the property of the people picker in the InfoPath form to see whether it has allowed multiple values, whether people picker control data type is User Type and check if the list is read-only.
You could try to create a new list to test whether the issue occurs.
There are three types of infopath form in SharePoint
List level (customizing the existing list)
Content type based infopath and
Farm level infopath Full trusted solution.
In the above three vsta custom code is allowed in farm level and content type based infopath, I mean those form we develop from the scratch using the infopath designer.
In this case, ...