Condividi tramite


Formula Element (List)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains a formula used in the definition of a field.

<Formula>
</Formula>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Field

Occurrences

Minimum: 0

Maximum: 1

Example

The following example defines a calculated field containing a formula that multiplies the value of another field by 100.

<Field Type="Calculated" DisplayName="Field_Display_Name" 
  ResultType="Number" ReadOnly="TRUE" Name="Field_Internal_Name">
  <Formula>=Other_Field_Name*100</Formula>
  <FieldRefs>
    <FieldRef Name="Other_Field_Name"/>
  </FieldRefs>
</Field>