Form Designer provision

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

02 Jul 2019

Dear Dat,
Trying to think what goes wrong. Technically, Form Schemas are stored separately in site's property bag, and they should get updated here:

Code: Select all

    #Update Site property bag
    $rootWeb.AllowUnsafeUpdates = $true;
    $rootWeb.AllProperties[$formProperty] = $formValue;
    $rootWeb.Update();
    $rootWeb.Properties.Update();
    $rootWeb.AllowUnsafeUpdates = $false;
Not sure why this doesn't happen...
Cheers

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

02 Jul 2019

Dear Dat,
Could you, please, using SharePoint designer check Site Option for the site where you publish the form? All the form schemas are stored there:
PropertyBagForms.png
PropertyBagForms.png (118.63 KiB) Viewed 2649 times
Check if any form schemas get published there at all or not. If they are, check the name of the properties, you might want to compare them to properties of original site where the form is from, maybe it's different.
Cheers

dat
Posts: 13
Joined: Mon May 27, 2019

09 Jul 2019

Hi Nikita Kurguzov,

I check Site Options on the site that provision SPForm by PowerShell code. It have all properties like your screenshot.
SPForm.png
SPForm.png (92.16 KiB) Viewed 2631 times
Please help me.
Thanks

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

09 Jul 2019

Dear dat,
I understand you have the property, I am just asking if it's the same as on the site you've exported the form? Is it the same name at least? Also, check the content, is the value the same?
PropertyBag.png
PropertyBag.png (37.28 KiB) Viewed 2630 times
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests