#Make field readOnly in Admin based on another field vlaue

14 messages · Page 1 of 1 (latest)

wind oyster
#

How to make a field readOnly based on another field value?

cosmic lance
#

Where there is validation information, and that provides siblingData as a prop

forest tartan
#

Currently readOnly is a boolean, so it cannot be conditional. This will likely be added as a feature in the near future.

#

You could use access control on the field, and have the field.access.update return false based on other fields in the doc

sterile spire
#

Hi, there's been quite some time, has there been something done with conditional readOnly fields?

I have a couple of fields that I want to be visible with content within them, but enable editing only if a checkbox is set and couldn't figure out how to do that with the access control stuff 😦

cosmic lance
#

@sterile spire We could help you figure out the field.access.update portion

#

Want to show us what you tried?

wide acorn
#

Definitely need this feature

cosmic lance
#

@wide acorn You can acheive the same behavior using access controls if that is helpful!

wide acorn
#

using access control I can only make it disappear, update or create but what I need is a specific field to be read only when certain value is match. I don't know may be there is a way but I m completely new in this so still figuring out.

marsh turtle
wide acorn
#

@marsh turtle nope, I changed my requirements accordingly.

untold bear