Conditional field based on series selection

I want to display field in doctype only when particular series is selected. How this is possible?
My series is 2021DEMO.####. If this is selected then field with loan basis PO name should be visible.

Check the depends on option given here:

https://docs.erpnext.com/docs/user/manual/en/customize-erpnext/custom-field#11-additional-details

In this case, you’ll write something like this for the select field:

eval doc.naming_series=='2021DEMO.####'
2 Likes

Thanks Kenneth. It worked.