Is it possible to lock few fields (without any conditions) within a detail on click of Save button ?
Hello Team,
Kindly suggest a way to lock fields within a detail when we click on Save button of the detail. This should happen without any dependency on other fields within the detail (unlike we usually do based on boolean value true or false).
Creatio : 7.17 Sales Team PostGreSQL
Like
You could use the CreatedOn field for this. It doesn't get populated until the save button is clicked (not the CreatedBy - it gets populated right away when the page is opened in add mode).
You can create a business rule that makes the field locked if the CreatedOn has a value. Then, the field will be editable when creating a new record, but will be locked as soon as the save button is clicked.
If this route doesn't work, you'll have to use an attribute and code as Oscar mentioned.
Ryan
Hello Dharini,
Attributes are required to use to lock fields on the page based on some conditions so it's hardly possible to do without any dependency on attributes. Or you can use document.getElementById JS method and change the .style.pointerEvents to 'none'.
Best regards,
Oscar
You could use the CreatedOn field for this. It doesn't get populated until the save button is clicked (not the CreatedBy - it gets populated right away when the page is opened in add mode).
You can create a business rule that makes the field locked if the CreatedOn has a value. Then, the field will be editable when creating a new record, but will be locked as soon as the save button is clicked.
If this route doesn't work, you'll have to use an attribute and code as Oscar mentioned.
Ryan