SOLVED

Approval Status Column Suddenly Numeric - Due to Column Formatting?

%3CLINGO-SUB%20id%3D%22lingo-sub-2932507%22%20slang%3D%22en-US%22%3EApproval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2932507%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20working%20in%20my%20tenant%20and%20noticed%20an%20issue%20with%20all%20of%20my%20lists%20that%20have%20content%20approval%20turned%20on.%20The%20approval%20status%20column%20now%20lists%20a%20number%20instead%20of%20the%20words%20%22Approved%22%20%7C%20%22Rejected%22%20%7C%20%22Pending%22%20I%20see%200%20%7C%201%20%7C%202.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI've%20created%20a%20new%20list%20and%20the%20words%20show%20up%20fine...%20but%20as%20soon%20as%20I%20turn%20on%20column%20formatting%20the%20words%20turn%20to%20numbers...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-11-05%20144956.png%22%20style%3D%22width%3A%20915px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F324621iACCFCA71165016C6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-11-05%20144956.png%22%20alt%3D%22Screenshot%202021-11-05%20144956.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2932507%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2937791%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2937791%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1103665%22%20target%3D%22_blank%22%3E%40Jeff_Lacarte%3C%2FA%3E%26nbsp%3BAre%20you%20applying%20JSON%20formatting%20on%20Approval%20status%20column%3F%3C%2FP%3E%3CP%3EIf%20yes%2C%20this%20is%20the%20reason%20column%20showing%20values%20differently%20because%20SharePoint%20saves%20approval%20status%20column%20values%20based%20on%20the%26nbsp%3B%3CA%20title%3D%22SPModerationStatusType%20Enum%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fapi%2Fmicrosoft.sharepoint.spmoderationstatustype%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESPModerationStatusType%20Enum%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20show%20us%20the%20JSON%20code%20you%20are%20using%20to%20format%20list%2Fcolumn%3F%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2939114%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2939114%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20using%20JSON%20formatting%20yes%2C%20and%20it%20was%20working%20fine%20all%20week.%20It%20seems%20to%20have%20changed%20on%20me%20suddenly.%20The%20screenshot%20in%20provided%20is%20from%20a%20brand%20new%20list%20that%20had%20no%20formatting%20applied.%20I%20turned%20on%20column%20formatting%20and%20as%20soon%20as%20I%20did%20that%20even%20without%20creating%20a%20rule%20the%20enum%20shows%20it's%20value%20instead%20of%20it's%20text.%20Below%20is%20a%20gif%20of%20reproducing%20the%20issue%20on%20a%20brand%20new%20list.%20Sorry%2C%20it's%20fast%2C%20I%20wanted%20to%20keep%20the%20size%20down.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22approval%20col%20formatting%20issue.gif%22%20style%3D%22width%3A%20986px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F325213iE856C1ED6602F5E9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22approval%20col%20formatting%20issue.gif%22%20alt%3D%22approval%20col%20formatting%20issue.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2939298%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2939298%22%20slang%3D%22en-US%22%3E%3CP%3EFixed%20it%20with%20a%20workaround%2C%20but%20it's%20still%20an%20issue.%20I%20can't%20be%20expected%20to%20use%20a%20workaround%20for%20every%20list%20that%20I%20need%20to%20apply%20conditional%20formatting%20to%20the%20approval%20status%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20going%20into%20advanced%20mode%20to%20work%20with%20the%20formatting%20JSON%20directly%20I%20could%20see%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%22txtContent%22%3A%20%22%5B%24_ModerationStatus%5D%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ewhich%20is%20displays%20the%20value%20for%20a%20given%20item%20in%20a%20row%20of%20the%20column.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThrough%20trial%20and%20error%20and%20referencing%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fformatting-syntax-reference%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esyntax%20reference%3C%2FA%3E%2C%20I%20found%20that%20you%20can%20use%20'%40currentField'%2C%20which%20also%20displayed%20the%20numeric%20value%20of%20the%20approval%20status.%20However%2C%20once%20I%20added%20'.displayValue'%20the%20text%20value%20showed%20up%20again!%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%22txtContent%22%3A%20%22%40currentField.displayValue%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20for%20why%20this%20happened%3F%20I%20have%20no%20idea.%20This%20is%20a%20workaround%20for%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2943888%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2943888%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F342466%22%20target%3D%22_blank%22%3E%40TonieB%3C%2FA%3E%26nbsp%3BThank%20you%20for%20confirming%20that%20you%20have%20the%20same%20problem.%20I%20suspected%20it%20might%20have%20been%20a%20MS%20change%20behind%20the%20scenes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20encourage%20others%20to%20try%20testing%20a%20new%20list%20with%20content%20approval%20turned%20on%20and%20try%20adding%20column%20formatting%20on%20the%20Approval%20Status%20column.%20I%20suspect%20you%20will%20have%20the%20same%20results%20as%20TonieB%20and%20I.%20It%20would%20be%20helpful%20too%20if%20others%20post%20their%20results%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETonieB%2C%20if%20your%20JSON%20formatting%20isn't%20terribly%20complex%2C%20I%20would%20try%20copying%20it%20into%20an%20editor%20like%20VS%20Code%20and%20do%20a%20find%20and%20replace%20on%3A%26nbsp%3B%5B%24_ModerationStatus%5D%20to%26nbsp%3B%40currentField.displayValue.%20That%20should%20at%20least%20get%20you%20back%20up%20and%20running%20as%20a%20workaround%20for%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2943693%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2943693%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20problem%20suddenly%20started%20for%20me%20today%20on%20all%20libraries%20where%20there%20is%20formatting%20on%20the%20Approval%20Status%20column.%26nbsp%3B%20The%20problem%20is%20not%20resolved%20by%20turning%20off%20the%20column%20formatting.%26nbsp%3B%20When%20I%20turn%20off%20the%20column%20formatting%2C%20now%20instead%20of%20a%20number%20the%20Approval%20Status%20column%20is%20blank.%26nbsp%3B%20I%20had%20to%20go%20then%20into%20the%20Advanced%20link%20and%20delete%20the%20json%20code%2C%20which%20should%20already%20disappear%20when%20I%20turned%20off%20the%20column%20formatting.%20I%20don't%20see%20any%20other%20info%20on%20this%20issue%20except%20for%20your%20post%2C%20but%20surely%20this%20must%20be%20occurring%20due%20to%20some%20Microsoft%20change.%20(My%20Approval%20Status%20columns%20have%20been%20formatted%20for%20over%20a%20year%20and%20I%20have%20made%20no%20recent%20changes%20to%20my%20site%20or%20libraries.)%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1103665%22%20target%3D%22_blank%22%3E%40Jeff_Lacarte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2944585%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2944585%22%20slang%3D%22en-US%22%3EI%20also%20have%20the%20exact%20same%20problem.%20I've%20had%20the%20formatting%20set%20on%20the%20approval%20status%20column%20for%20a%20couple%20of%20months.%20Suddenly%20it%20is%20showing%20the%20numeric%20value%20just%20as%20you%20describe.%20I%20have%20custom%20JSON%20formatting%20applied%20as%20well.%20Even%20stranger%2C%20it%20seems%20to%20occasionally%20revert%20back%20to%20the%20written%20status.%20I%20randomly%20refreshed%20my%20browser%20and%20it%20was%20back%20to%20normal%20followed%20by%20another%20refresh%20back%20to%20numeric%20value.%20This%20must%20be%20something%20MSFT%20did.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2945833%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2945833%22%20slang%3D%22en-US%22%3EWe%20are%20experiencing%20the%20same%20problem.%20We%20have%20had%20conditional%20formatting%20on%20for%20about%206%20months%20without%20a%20problem.%20All%20libraries%20with%20the%20approval%20status%20column%20have%20the%20same%20problem.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2947588%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2947588%22%20slang%3D%22en-US%22%3ESame%20issue.%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F41501%22%20target%3D%22_blank%22%3E%40microsoft%3C%2FA%3E%20repair%20this!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2948341%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2948341%22%20slang%3D%22en-US%22%3EThe%20same%20issue%20identified!%3CBR%20%2F%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1103665%22%20target%3D%22_blank%22%3E%40Jeff_Lacarte%3C%2FA%3E%20for%20workaround!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2948654%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2948654%22%20slang%3D%22en-US%22%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20are%20experiencing%20this%20issue%20as%20well.%20Thank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2949334%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2949334%22%20slang%3D%22en-US%22%3EThe%20same%20problem%20has%20appeared%20on%20all%20my%20sites%20this%20week%2C%20where%20I%20had%20already%20implemented%20a%20JSON%20code%20that%20has%20been%20working%20for%20years%20and%20nothing%20similar%20has%20ever%20happened.%20I%20hope%20MS%20looks%20for%20a%20patch%20ASAP%20because%20this%20type%20of%20bugs%20does%20not%20look%20good%20in%20collaboration%20systems%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2952972%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2952972%22%20slang%3D%22en-US%22%3E%3CP%3ESame%20issue%20for%20us.%20We%20changed%20the%20json%20formatting%20to%20refer%20to%20%22ModerationStatus%22%20instead%20and%20this%20looks%20ok.%20HOWEVER%20when%20a%20search%20term%20is%20entered%2C%20all%20results%20are%20showing%20%22Rejected%22%20instead%20of%20their%20true%20status.%20Microsoft%2C%20fix%20it%20please!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2954173%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2954173%22%20slang%3D%22en-US%22%3ENoted%20the%20same%20issue%20with%20all%20Lists%20in%20SP%20Online%20where%20conditional%20formatting%20was%20applied%20based%20on%20the%20approval%20value%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2957804%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2957804%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1103665%22%20target%3D%22_blank%22%3E%40Jeff_Lacarte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20the%20same%20issue%20with%20impact%20to%20the%20whole%20list.%3C%2FP%3E%3CP%3EThe%20Approval%20Status%20formatting%20was%20used%20in%20our%20lists%20also%20for%20the%20other%20columns%20in%20the%20same%20list%2C%20however%2C%20the%20formatting%20is%20not%20working%20with%20the%20number%20%220%22%20and%20also%20not%20for%20the%20word%20%22Approved%22.%3C%2FP%3E%3CP%3EIt%20is%20really%20a%20pity%20because%20it%20was%20really%20nice%20and%20simple%20feature%20to%20see%20the%20approval%20status%20in%20the%20first%20column.%20I%20hope%20that%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F41501%22%20target%3D%22_blank%22%3E%40microsoft%3C%2FA%3E%26nbsp%3B%20will%20solve%20this%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2964633%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2964633%22%20slang%3D%22en-US%22%3EHad%20the%20same%20issue%20at%20a%20customer.%20This%20is%20actually%20a%20good%20change%20because%20you%20don't%20have%20to%20check%20the%20approval%20status%20value%20for%20multiple%20languages%20anymore%20(if%20this%20is%20necessary%20for%20you).%20I%20hope%20it%20does%20not%20get%20reverted.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2966889%22%20slang%3D%22en-US%22%3ERe%3A%20Approval%20Status%20Column%20Suddenly%20Numeric%20-%20Due%20to%20Column%20Formatting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2966889%22%20slang%3D%22en-US%22%3EGiving%20you%20access%20to%20the%20enumeration%20value%20is%20a%20good%20change%20sure%2C%20but%20changing%20the%20returned%20value%20of%20an%20existing%20variable%20is%20not.%20People%20have%20built%20custom%20views%20around%20this%2C%20and%20to%20change%20it%20is%20not%20ok.%3C%2FLINGO-BODY%3E
Occasional Contributor

I'm working in my tenant and noticed an issue with all of my lists that have content approval turned on. The approval status column now lists a number instead of the words "Approved" | "Rejected" | "Pending" I see 0 | 1 | 2.


I've created a new list and the words show up fine... but as soon as I turn on column formatting the words turn to numbers...

 

Screenshot 2021-11-05 144956.png

20 Replies

@Jeff_Lacarte Are you applying JSON formatting on Approval status column?

If yes, this is the reason column showing values differently because SharePoint saves approval status column values based on the SPModerationStatusType Enum.

 

Can you show us the JSON code you are using to format list/column?


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

I was using JSON formatting yes, and it was working fine all week. It seems to have changed on me suddenly. The screenshot in provided is from a brand new list that had no formatting applied. I turned on column formatting and as soon as I did that even without creating a rule the enum shows it's value instead of it's text. Below is a gif of reproducing the issue on a brand new list. Sorry, it's fast, I wanted to keep the size down.

 

approval col formatting issue.gif

Fixed it with a workaround, but it's still an issue. I can't be expected to use a workaround for every list that I need to apply conditional formatting to the approval status column.

 

By going into advanced mode to work with the formatting JSON directly I could see:

 

"txtContent": "[$_ModerationStatus]"

 

 
which is displays the value for a given item in a row of the column.
 
Through trial and error and referencing the syntax reference, I found that you can use '@currentField', which also displayed the numeric value of the approval status. However, once I added '.displayValue' the text value showed up again!

 

"txtContent": "@currentField.displayValue"

 

As for why this happened? I have no idea. This is a workaround for now.

 

This problem suddenly started for me today on all libraries where there is formatting on the Approval Status column.  The problem is not resolved by turning off the column formatting.  When I turn off the column formatting, now instead of a number the Approval Status column is blank.  I had to go then into the Advanced link and delete the json code, which should already disappear when I turned off the column formatting. I don't see any other info on this issue except for your post, but surely this must be occurring due to some Microsoft change. (My Approval Status columns have been formatted for over a year and I have made no recent changes to my site or libraries.)  @Jeff_Lacarte 

@TonieB Thank you for confirming that you have the same problem. I suspected it might have been a MS change behind the scenes.

 

I encourage others to try testing a new list with content approval turned on and try adding column formatting on the Approval Status column. I suspect you will have the same results as TonieB and I. It would be helpful too if others post their results here.

 

TonieB, if your JSON formatting isn't terribly complex, I would try copying it into an editor like VS Code and do a find and replace on: [$_ModerationStatus] to @currentField.displayValue. That should at least get you back up and running as a workaround for now.

I also have the exact same problem. I've had the formatting set on the approval status column for a couple of months. Suddenly it is showing the numeric value just as you describe. I have custom JSON formatting applied as well. Even stranger, it seems to occasionally revert back to the written status. I randomly refreshed my browser and it was back to normal followed by another refresh back to numeric value. This must be something MSFT did.
We are experiencing the same problem. We have had conditional formatting on for about 6 months without a problem. All libraries with the approval status column have the same problem.
The same issue identified!
Thanks @Jeff_Lacarte for workaround!
Hello,

We are experiencing this issue as well. Thank you!
The same problem has appeared on all my sites this week, where I had already implemented a JSON code that has been working for years and nothing similar has ever happened. I hope MS looks for a patch ASAP because this type of bugs does not look good in collaboration systems

Same issue for us. We changed the json formatting to refer to "ModerationStatus" instead and this looks ok. HOWEVER when a search term is entered, all results are showing "Rejected" instead of their true status. Microsoft, fix it please!

Noted the same issue with all Lists in SP Online where conditional formatting was applied based on the approval value

@Jeff_Lacarte 

We have the same issue with impact to the whole list.

The Approval Status formatting was used in our lists also for the other columns in the same list, however, the formatting is not working with the number "0" and also not for the word "Approved".

It is really a pity because it was really nice and simple feature to see the approval status in the first column. I hope that @microsoft  will solve this issue.

Had the same issue at a customer. This is actually a good change because you don't have to check the approval status value for multiple languages anymore (if this is necessary for you). I hope it does not get reverted.
Giving you access to the enumeration value is a good change sure, but changing the returned value of an existing variable is not. People have built custom views around this, and to change it is not ok.
best response confirmed by Jeff_Lacarte (Occasional Contributor)
Solution

@Jeff_Lacarte @nfsg20 @DavidLang @Amiryunus @Stephen Bayliss @aricornish @YeBuu @mcancela @Duncan2450 @Gavin Tully @TonieB 

 

This is happening because of recent change in JSON schema to officially support Approval Status column in JSON formatting.

Due to this update, the @currentField and [$_ModerationStatus] will resolve to internal code (enum value) and @currentField.displayValue and [$_ModerationStatus.displayValue] will resolve to the localized string (I guess according to language).

 

The Microsoft official docs will be updated with more info in the coming weeks. You can check the details for now at: SharePoint Online Column Formatting for Approval Status: uses language specific text? 


Please consider giving a Like if my post helped you in any way.

So . . . are you saying formatting was broken intentionally, without letting anyone know ahead of time, in order to customize that column to add a feature one person asked for? And Microsoft is going to update everyone with info several weeks after the formatting was broken for anyone who had formatting on that column?? So that anyone using SharePoint with formatting on that column will be wondering for weeks on end what the issue is, unless they stumble upon this post thread???

@ganeshsanap thanks for the info and finding this. Further to @TonieB 's comments, the wording of the change makes it seem like it only affects those who elected to use a specific field in custom JSON formatting for a very specific purpose. However the fact is this breaks Out-of-the-box formatting found in SharePoint; the field that was changed is the field that was used by OOB formatting and thus the field that everyone used to further customize if they used their own JSON formatting. Because it's what was used internally! 

 

Here is an example: as soon as you turn on Conditional formatting you can see the approval status immediately change to the number '2'. This is OOB behavior, no custom formatting  in place. They've broken their own code with this change.

built-in-formatting-tool.png