In my CRM, I have created 4 fields that should calculate based on the FFL Number. However, they're only producing "0" each time. What have I done wrong?
They're all set to return a String.
FFL Exp Month Formula: If((Substring(${FFL Details 2.FFL Number},10,1))=='A','January',(If((Substring(${FFL Details 2.FFL Number},10,1))=='B','February',(If((Substring(${FFL Details 2.FFL Number},10,1))=='C','March',(If((Substring(${FFL Details 2.FFL Number},10,1))=='D','April',(If((Substring(${FFL Details 2.FFL Number},10,1))=='E','May',(If((Substring(${FFL Details 2.FFL Number},10,1))=='F','June',(If((Substring(${FFL Details 2.FFL Number},10,1))=='G','July',(If((Substring(${FFL Details 2.FFL Number},10,1))=='H','August',(If((Substring(${FFL Details 2.FFL Number},10,1))=='J','September',(If((Substring(${FFL Details 2.FFL Number},10,1))=='K','October',(If((Substring(${FFL Details 2.FFL Number},10,1))=='L','November',(If((Substring(${FFL Details 2.FFL Number},10,1))=='M','December','0')))))))))))))))))))))))
Should display: January
FFL Exp Year Formula: If((Substring(${FFL Details 2.FFL Number},9,1))=='1','2021',(If((Substring(${FFL Details 2.FFL Number},9,1))=='2','2022',(If((Substring(${FFL Details 2.FFL Number},9,1))=='3','2023',(If((Substring(${FFL Details 2.FFL Number},9,1))=='4','2024',(If((Substring(${FFL Details 2.FFL Number},9,1))=='5','2025',(If((Substring(${FFL Details 2.FFL Number},9,1))=='6','2026',(If((Substring(${FFL Details 2.FFL Number},9,1))=='7','2027',(If((Substring(${FFL Details 2.FFL Number},9,1))=='8','2028',(If((Substring(${FFL Details 2.FFL Number},9,1))=='9','2019',(If((Substring(${FFL Details 2.FFL Number},9,1))=='0','2020','0')))))))))))))))))))
Should display: 2024
FFL Type Formula: Substring(${FFL Details 2.FFL Number},7,2)
Should Display: 01
FFL Type Definition Formula: If((Substring(${FFL Details 2.FFL Number},7,2))=='01','Dealer in Firearms Other Than Destructive Devices',(If((Substring(${FFL Details 2.FFL Number},7,2))=='02','Pawnbroker in Firearms Other Than Destructive Devices',(If((Substring(${FFL Details 2.FFL Number},7,2))=='03','Collector of Curios and Relics',If((Substring(${FFL Details 2.FFL Number},7,2))=='06','Manufacturer of Ammo for Firearms Other Than Ammo for Destructive Devices or Armor Piercing Ammo',(If((Substring(${FFL Details 2.FFL Number},7,2))=='07','Manufacturer of Ammo for Firearms Other Than Ammo for Destructive Devices or Armor Piercing Ammo',(If((Substring(${FFL Details 2.FFL Number},7,2))=='08','Importer of Firearms',(If((Substring(${FFL Details 2.FFL Number},7,2))=='09','Dealer in Destructive Devices',(If((Substring(${FFL Details 2.FFL Number},7,2))=='10','Manufacturer of Destructive Devices, Ammo for Destructive Devices or Armor Piercing Ammo',(If((Substring(${FFL Details 2.FFL Number},7,2))=='11','Importer of Destructive Devices, Ammo for Destructive Devices or Armor Piercing Ammo','0'))))))))))))))))
Should display: Dealer in Firearms Other Than Destructive Devices