Skip to content

Using react_on together with visible in fields #4463

@4ndv

Description

@4ndv

Configuration

Avo version

4.0.0.beta.27

Rails version

8.1.3

Ruby version

4.0.2

License type
  • Community
  • Pro
  • Advanced
Are you using Avo monkey patches, overriding views or view components?
  • Yes — please post code samples below
  • No

Description

Would be nice to combine react_on and visible like this:

field :deadline, as: :date_time, react_on: :priority, visible: -> { resource.record.severe_priority?  }

Right now field visibility is not affected by changing the related field value

Additional context

Rep(r)o: https://github.com/4ndv/avo_field_bug_repro

Screenshots or screen recordings

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
To Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions