Issue
This article is meant to provide information on how to hide a service portal widget based on a record state
Resolution
Please see below community post and Youtube video which go through how a customer can achieve the behavior in their Service Portal.
https://www.youtube.com/watch?time_continue=6&v=-eJMULIa43A