Unable to add options in Select field type in Customize Form

Hi

I am unable to add options into a Select field, namely Reason, in Customize Form for Attendance Request in HR module. Screenshots are given below. Though I could find couple of posts on this topic the solution did not seem comprehensive. Is there another way to resolve the issue. Please help.

image

New restriction is added in the core. you have to comment the code in Frappe to allow this.

You can add it with the help of ‘Edit DocType’ feature.

use property setter instead

1 Like

Thank you all for the replies

What worked for me is as follows:

  • cd frappe-bench/apps/frappe/frappe/custom/doctype/customize_form
  • sudo vim customize_form.py
  • At the very last line, modify to include Select
    ALLOWED_OPTIONS_CHANGE = (“Read Only”, “HTML”, “Select”, “Data”)
  • :wq to save and exit
  • cd
  • cd frappe-bench
  • bench restart
2 Likes

This is in the below versions:

ERPNext: v13.30.0 (version-13)
Frappe Framework: v13.29.2 (version-13)