I am trying to upgrade this module. I need to have the name field for the non-BWC module to be read-only and automatically get it name based on other fields.
Thank you,
Amy
I am trying to upgrade this module. I need to have the name field for the non-BWC module to be read-only and automatically get it name based on other fields.
Thank you,
Amy
Hi Amy Cox you can do it converting the field to calculated from studio or you can add "readonly" = true, in the record view field. The route must to be: custom/modules/<custom_module_name/clients/base/views/record/record.php
Regards.
If you convert your field from the studio to "calculated field", you will add a sugar logic formula in your field but you must be carefull with the value because every time you do an update the calculated field will be updated, so, you can validate with a ifElse sugar logic formula.
If you edit the record view file, this will not let you change the field value from user interface, but the readonly attribute will not be authomatical.
here an example:
I hope this be useful.
Kind Regards.
If you convert your field from the studio to "calculated field", you will add a sugar logic formula in your field but you must be carefull with the value because every time you do an update the calculated field will be updated, so, you can validate with a ifElse sugar logic formula.
If you edit the record view file, this will not let you change the field value from user interface, but the readonly attribute will not be authomatical.
here an example:
I hope this be useful.
Kind Regards.