How to set conditional Next URL to go on success?

How to set conditional Next URL to go on success?

How to set from the script conditional URL to be displayed when a form is submitted?