How to generate naming series by custom field value of first letter

Hello I just want to ask how i can generate this type of naming series

“ID-R #0001

(R) will be dynamic i have one field where data type is select and options are “Rent”, “Sale”, “Off Plan”

i want when Rent select the Namimg Series will like this “ID-R #0001
when Sale Select select the Namimg Series will like this “ID-S #0001
(#) will be vissible i have attaced the scrren-shot of output
image

is it posssible in ERPNext V15

Thank You.

@falah123 check this Doctype Naming Rule - #7 by niyaz_razak

1 Like

Can you please tell the doctype name where i can do changes because i cant see the doctype name in the screenshot.

Thank you.

@falah123 Document Naming Rule

1 Like

Thank You.