Question

LeadType

Hello,

I am removing the required LeadType on the LeadMiniPage but it is not working

 

Here is the code

I have marked it not required, and looked on minipage / backend and it is not required there either, but when I go to add a lead it still shows it is required but without the asterik.

Any help appreciated.

Thanks

Like 0

Like

1 comments

Hello,

 

Please also override the getLeadTypeValidator method from the LeadMiniPage module or remove the validator from the init method:

and

To remove validator from the page use the following approach:

init: function(){
					this.callParent(arguments);
					this.validationConfig["LeadType"].splice(0,1);
				},

As a result after refreshing the page the validator will be removed from the minipage.

 

Best regards,

Oscar

Show all comments