Display message after clicking submit in form

Hi,

I want to display some message after user clicks submit in the form. Example of the message-"Successfully created a record" or "Some Error occurred". How to achieve this both in interface as well as in process model.

Thanks in advance.

  Discussion posts and replies are publicly visible