I have an issue related to making a field read-only

I have an issue related to making a field read-only. I want to make some fields in a child table read-only based on a condition. In the child table, there are fields like start_date, end_date, and offer. I want these fields to be read-only if the booking_id is added; otherwise, they should remain editable.

@Govind_Gupta use the read only depends on field . eval:doc.booking_id;