In Contact Lookup lets say in Case page, there is a "New" button for user to create a new Contact record. Once "New" button is clicked, instead of opening contact edit page, I wanted to open add mini card. How can I possibly do this?
We are interested in the needOpenMiniPage method from the LookupPageViewModelGenerator. I was able to open the lookup in runtime of the webbrowser by modifying the code of the method in the following way:
You need to replace this method in your system and add this.lookupInfo.isQuickAdd=true; before this.callParent(arguments) and it should open the minipage: