Loading...

Form Component Behavior error

Form Component Behavior error

Home Forums QuickApps Forum Form Component Behavior error

  • This topic is empty.
Viewing 4 reply threads
  • Author
    Posts
    • #4144
      Anonymous
      Anonymous
      Participant

      Ii receive an error

      The following error occurred: Invalid Form Component Behavior property: Invalid Web Part metadata defined: There is an error in XML document (11, 12). when the following is the condition

      <FormComponentBehavior>

        <Component Type=”Group” ID=”CaseFax”>

          <ShowWhen>

            <Or>

              <Contains>

                <FieldRef Name=”Fax_x0020_Type” />

                <Value Type=”Choice”>Case Fax</Value>

              </Contains>

              <Contains>

                <FieldRef Name=”Fax_x0020_Type” />

                <Value Type=”Choice”>Pre-case Fax</Value>

              </Contains>

            </Or>

          </ShowWhen>

        </Component>

      </FormComponentBehavior>

      However if I modify to contain just one condition instead of AND  statement it works

      <FormComponentBehavior>

        <Component Type=”Group” ID=”CaseFax”>

          <ShowWhen>

            <Contains>

              <FieldRef Name=”Fax_x0020_Type” />

              <Value Type=”Choice”>Case Fax</Value>

            </Contains>

          </ShowWhen>

        </Component>

      </FormComponentBehavior>

    • #6526
      Anonymous
      Anonymous
      Participant

      Hi Alla,

      This error you have reported is new to 5.6 SP2010 as there was slight change in the way the Microsoft XML parser parse the form component behavior XML configuration. So any XML configuration involving an AND/OR condition that was working before will be broken after upgrading to 5.6.

      We already have a 5.6 SP2010 hotfix ready that addresses this issue. Please contact customer support to open a support case and we will be able to provide you a hotfix for this.

      Thanks,

      Yuan

    • #4909
      Anonymous
      Anonymous
      Participant

      Hi Alla,

         Would you mind to share with me the Sharepoint and Quest Web Parts version?

      When you add the 2nd OR condition add the condition OR explicitly then the condition.

      Also I'd suggest you to consult section CAML Filter from our help file.

      Thnaks,

    • #6524
      Anonymous
      Anonymous
      Participant

      This is the condition I built using QWP 5.6 for SharePoint 2010 and it works for me.

      <FormComponentBehavior>

        <Component Type="Field" ID="First Name">

          <HideWhen>

            <Or>

              <Contains>

                <FieldRef Name="Title" />

                <Value Type="Text">123</Value>

              </Contains>

              <Contains>

                <FieldRef Name="Title" />

                <Value Type="Text">abc</Value>

              </Contains>

            </Or>

          </HideWhen>

        </Component>

      </FormComponentBehavior>

    • #6525
      Anonymous
      Anonymous
      Participant

      My version is QWP – Product Version: 5.6 (Build 2011.9.28, SharePoint Enterprise 2010

      I copied your CAMl in my webpart ( I use it for the document library) and still have the same error

Viewing 4 reply threads

You must be logged in to reply to this topic.