Replace with ${!archivedView} and make sure it's working. Then apply to all places where this line has been added.
I'm pretty sure it's only with javascript that you have to be careful with using !var in case the var is a string.