I don’t believe you can as of PDM 2018. For required entires we add (req’d) next to the label and make it a different color. Beginning with PDM 2018 the user receives a message with detailed information on why the transition failed.
SolidworksApi/macros