Set the ID based on the param.