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 0

Like

3 comments
Best reply

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

Ryan Farley,

Thanks for the suggestion! It works perfectly fine.

Show all comments