Question

Cancel the "New"

Hello

 

When typing some string on a lookup field, at the bottom of the field there is this option to add the value as a new value to the lookup if it doesn't exsitis in the lookup table.

 

I understand that this option can be blocked via permissions but how can I remove this option completely from a lookup field.

Remove it in a manner that the user will not see this option to add new.

 

 

 

 

Like 1

Like

2 comments
Best reply

Hi Oren,



Thank you for contacting us!



Sure, there is an option to block such functionality. However, please note that the development process should be applied.



1. Firstly, you need to create a replacing client module schema for BasePageV2 client module. Please find the information about it in the article by the link below:



https://academy.creatio.com/documents/technic-sdk/7-16/creating-custom-client-module-schema



2. In a new replacing client schema, please insert the code below:

 

define("BasePageV2", [], function() {
return {
methods: {
/**
* @inheritdoc Terrasoft.model.BaseViewModel#onLookupDataLoaded
* @override
*/
onLookupDataLoaded: function(config) {
config.isLookupEdit = false;
this.callParent(arguments);
},
}
};
});



3. Save the changes and hard-reload the page.



Regards,

Anastasiia

Hi Oren,



Thank you for contacting us!



Sure, there is an option to block such functionality. However, please note that the development process should be applied.



1. Firstly, you need to create a replacing client module schema for BasePageV2 client module. Please find the information about it in the article by the link below:



https://academy.creatio.com/documents/technic-sdk/7-16/creating-custom-client-module-schema



2. In a new replacing client schema, please insert the code below:

 

define("BasePageV2", [], function() {
return {
methods: {
/**
* @inheritdoc Terrasoft.model.BaseViewModel#onLookupDataLoaded
* @override
*/
onLookupDataLoaded: function(config) {
config.isLookupEdit = false;
this.callParent(arguments);
},
}
};
});



3. Save the changes and hard-reload the page.



Regards,

Anastasiia

Anastasiia Markina,

Thanks Anastasiia

Show all comments