Modifiers for tagExpression parameter of FormTagExpression

Form tag expressions use a powerful template syntax with multiple patterns:

Basic Property Access

Retrieves fields directly from the record.

Incident.Claimant → Returns claimant name
Claim.ClaimNumber → Returns claim number
Policy.PolicyNumber → Returns policy number

Field Formatting (Modifiers)

Apply formatting by adding -FormatType immeditately following the field name

Name Parsing

Incident.Claimant-FirstName → "John" (from "John Doe")
Incident.Claimant-LastName → "Doe"
Incident.Claimant-MiddleName → "Michael" (from "Doe, John Michael")
Incident.Claimant-MiddleInitial → "M"
Incident.Claimant-FirstNameTitleCase → Ensures title case formatting

Date Formatting

Incident.LossDate-d → Short date (e.g., "12/5/2009")
Incident.LossDate-yyyy-MM-dd → Custom format ("2009-12-05")
Incident.LossDate-Month → Month number ("12")
Incident.LossDate-Day → Day number ("5")
Incident.LossDate-Year → Two-digit year ("09")
Incident.LossDate-Year4 → Four-digit year ("2009")
Incident.LossDate-yyyy1 → First digit of year ("2")
Incident.LossDate-yyyy2 → Second digit of year ("0")

Time Formatting

Incident.LossTime-Time → "10:15 PM"
Incident.LossTime-Time24 → "22:15"
Incident.LossTime-AMPM → "PM"
Incident.EntryDate-HH:mm:ss → "05:05:09" (time portion of datetime)

Number Formatting

Incident.WageRate-# → Whole number only ("4371" from 4371.2)
Incident.Paid1-00.000 → Custom decimal format ("00.340")
Incident.Paid1-C2 → Currency format ("$0.34")
Incident.AverageWeeklyWage-Decimal2 → Last two decimal digits ("25" from 3010.25)

Phone Number Parsing

Incident.Phone-AreaCode → "312" (from "(312) 433-2838")
Incident.Phone-NoAreaCode → "433-2838"
Incident.Phone-PhoneExchange → "433"
Incident.Phone-PhoneSuffix → "2838"

SSN Formatting

{Incident.SocialSecurity-SSN} → "123-45-6789"
{Incident.SocialSecurity-SSN123} → "123" (first 3 digits)
{Incident.SocialSecurity-SSN45} → "45" (middle 2 digits)
{Incident.SocialSecurity-SSN6789} → "6789" (last 4 digits)
{Incident.SocialSecurity-SSN1} → "1" (first digit only)
{Incident.SocialSecurity-SSN9} → "9" (9th digit)
{Incident.SocialSecurity-DigitsOnly} → "123456789" (no dashes)

Boolean Values

{Incident.FullPayOnDayOfInjury} → "Yes" or "No"

Object Navigation

Navigate through related objects using dot notation

Incident.Claim.Policy.PolicyNumber
Incident.Location.Name
Incident.BodyPart.DisplayCode
Claim.PolicyCoverage.Policy.Carrier.MailingName

Coalesce (Fallback Values)

Use | to provide fallback options - returns the first non-empty value

Incident.ReportDate|Incident.LossDate
Incident.CustomText3|CONST:Unknown
Claim.Policy.PolicyNumber|Claim.PolicyCoverage.Policy.PolicyNumber

*The CONST: prefix returns a literal value if all other options are empty.


Calculated Expressions

Fields should be denoted using {}syntax

Designed to work with numeric calculations. String concatenation is possible, but behavior can sometime vary depending on the interplay of the order of operations and the {}values provided

Prefix with = to perform calculations using JavaScript syntax

Be sure that the entirety of your final Calculation is URL encoded

#### Example 1: Simple Addition
UNENCODED: ={Incident.WageRate} + {Incident.CustomNumber10}
URL ENCODED: %3D%7BIncident.WageRate%7D%20%2B%20%7BIncident.CustomNumber10%7D
→ Returns: 6586.2

#### Example 2: Addition with Currency Formatting
UNENCODED: ={Incident.WageRate} + {Incident.CustomNumber10};C2
URL ENCODED: %3D%7BIncident.WageRate%7D%20%2B%20%7BIncident.CustomNumber10%7D%3BC2
→ Returns: "$6,586.20" (with currency formatting after semicolon)

#### Example 3: Date Addition (Days)
UNENCODED: ={Incident.TestDate}.AddDays(1)
URL ENCODED: %3D%7BIncident.TestDate%7D.AddDays%281%29
→ Returns date plus one day

#### Example 4: Date Addition (Months)
UNENCODED: ={Incident.TestDate}.AddMonths(1)
URL ENCODED: %3D%7BIncident.TestDate%7D.AddMonths%281%29
→ Returns date plus one month

#### Example 5: Pure Math (No Tags)
UNENCODED: =5 + 5 * 2
URL ENCODED: %3D5%20%2B%205%20%2A%202
→ Returns: 15 (pure math, no tags)

KEY ENCODING RULES:
= → %3D
{ → %7B
} → %7D
  (space) → %20
+ → %2B
; → %3B
' → %27
, → %2C
( → %28
) → %29
* → %2A