Disable 'New' on Lookup field

Is it possible to disable the option to create a new record when editing a Lookup field, so that the user can select an existing record, but not create one?  Users can sometimes unwittingly do this when not able to find the record using the Lookup.  If not is there a workaround?  It is not an option to remove create rights for the Lookup object.

Like 1

Like

2 comments

Hello Gareth,

 

Please check the answer on this post: 

https://community.creatio.com/questions/disable-new-option-city-state-l…

 

Here was a contrary question to DISABLE "NEW" OPTION. But you can try by analogy to change  "Lookup view" from  "List" to "Selection window" and the "New" button should be available.

 

Best regards,

Bogdan

 

 

Hello Gareth,

 

you can also disable New in "List", but with a little coding:

1. Override LookupQuickAddMixin

 

define("UsrLookupQuickAddMixin", ["LookupQuickAddMixin"], function() {
	Ext.define("Terrasoft.UsrLookupQuickAddMixin", {
		override: "Terrasoft.LookupQuickAddMixin",
		onLookupDataLoaded: Terrasoft.emptyFn
	});
});

 

2. Replace BootstrapModulesV2

define("BootstrapModulesV2", ["UsrLookupQuickAddMixin"], function() {
	return {};
});

 

Show all comments