I need to create auto genaertaed id in the diaulog box using frappe

Hii Good morning,
How to create auto genaertaed id in the diaulog box using frappe
ID format is: S/2014/0001