In Cognos, you can validate the user input in a text box prompt using various techniques. You can set validation rules for the prompt based on the expected input format or ranges. Additionally, you can use JavaScript or other scripting languages to perform custom validation checks and display error messages if the input is invalid.