Resurrecting this old thread. It appears you don’t get the same functionality when asking for an integer/float from the client:
Boolean (works fine):
When asking for an integer (doesn’t work)
I guess since the command calls different UI elements, and the numerical input doesn’t interpret the text as html. Very unfortunate.