Article

How to restrict types of pages in the button new of Lookup

Hello Community!

 

Some times we need to have a Lookup related with contact, but we want to show only some pages in the button new.

The lookupListConfig parameter in the attributes of the field can help us with that.

 

In this example I have a contact lookup in my page but i want to exclude the edit page "Employee"

 

 

For this we gonna apply in the attributes of the field the follow code.

		attributes: {
			"UsrContact": {
				lookupListConfig: {
                    excludedTypes: ["60733efc-f36b-1410-a883-16d83cab0980"]  // List of uId of the edit pages separated by comma
                }
			}

The result is the same lookup but only with the pages that we are not excluding.

 

 

Like 3

Like

Share

0 comments
Show all comments