Hello,
We need that when a record of a custom module is saved, depending on the value of another field, some fields, or all, are read-only. Or what is the same that you can't edit the record.
At the moment we have solved it duplicating the module sections. One section would have the modifiable fields and the other one, with the same fields, but only reading. When the reference field value has a certain value, it will show the corresponding section and will hide the other one.
When I save the record, the corresponding values are replicated in the fields. But this solution does not convince me, because all the duplicated fields are shown in the module search, so it is shown to the user to search by Name, First name1, Last name, Surname1, Address, Address1, etc.
How could you make the fields read-only, or that the record could not be edited, according to the value of another field? or in its defect, could you hide from the search the fields that you do not want to appear?
Thank you
Translated with www.DeepL.com/Translator (free version)