How to get newly created doc name in web form

Iam trying get the doc name when ever it is submitted in web form