Restrict format by a variable in settings