Values beyond constraint limits (solved)

I have an object, locked in x and y, so only free in z. I has also a “limit location” constraint in z between 0 and +1. When I grab it above +1 or below 0, its z value follows my grabbing, although the object stops at these limits.
So question : Is there a way that its z value stays where it stops, i.e. 0 or +1 ?

Thanks in advance !

I got the solution in the “BlenderClan” forum. The option “For transform” has to be checked in the “Limit location” constraint panel.