hlavatý participated in 2017 legislative election. he was placed last on ano 2011 list for hradec králové region. he was elected due to preferential votes. hlavatý lost his senate seat as a result. by-election i trutnov district was called for 5 and 6 january 2018.