Hello team,
Please see this code, and let me know where I am doing mistake.
As enable property of the action is set to false but the change is not reflecting.
Please help me with this.
Many thanks.
Like
Hi Rahul,
In order to remove the "Actions" from the sections, you need to do the following:
1. Create replacing view module and choose the parent "BaseSectionV2"
2. Add the next code to this schema:
define("BaseSectionV2", [], function() {
return {
entitySchemaName: "",
details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
diff: /**SCHEMA_DIFF*/[
{
"operation": "remove",
"name": "CombinedModeActionsButton"
}
]/**SCHEMA_DIFF*/,
methods: {}
};
});
3. As the result, the button "Actions" will be removed from the sections:
If you want to remove/hide the specific action from the collection, please refer to this post with the needed solution:
https://community.creatio.com/questions/how-hide-or-remove-actions-sect…
Best Regards,
Bogdan L.
Hi Rahul,
You need to debug this logic and see what is passed to the check and if the needed items are receiving the desired Enabled property and value for it or not. I was able to disable the "Data import" action in the Contacts section using the code below:
and
Best regards,
Oscar