Validate prompt values when button pushed

This sample shows how to validate prompt values when a prompt button is clicked.