8000 Can't hide Virtual Fields · Issue #23541 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't hide Virtual Fields #23541
Closed
Closed
@zongo811

Description

@zongo811

Description of the issue

I added a virtual field that should only be shown when a certain condition is true. Much to my dismay I discovered that Virtual Fields can't be hiddden. Neither the Hide-Flag in the Field Properties nor the js-Functions set_df_property() and toggle_display() actually hide a virtual field.

Context information (for bug reports)

See field "virtuell" in json-File.
test_4dev.json

Output of bench version

erpnext 14.48.1
frappe 14.55.0
hrms 14.16.1

Steps to reproduce the issue

  1. Add a Virtual Field with any Option to a Doctype, set Hidden Flag
  2. Go to Form View: Virtual Field is still visible
  3. Try to hide Virtual Field with javascript, use set_df_property() and toggle_display()

Observed result

Virtual Field stays visible

Expected result

Virtual Field is hidden

Stacktrace / full error message

Does not occur

Additional information

OS version / distribution, Frappe install method, etc.
debian buster, manual install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0