Override Account communication options ( NUI ) detail and set field validation

Hi Community,

I have here a scenario below

 

Scenario:

I want to override Account communication options ( NUI ) detail for me to add field validation on its fields.

 

My replacing client module

 

But upon overriding setValidationConfig(), I got this error

How could I fix this? or is it posible to override setValidationConfig() inside a detail or the setValidationConfig() only works inside an edit page?

Thanks

 

Like 0

Like

2 comments

Give your code with a call setValidationConfig

But I think it's better case override  BaseCommunicationDetail and overriding addItem() 

And add your validator by analogy as there is added duplicate checking and number checking:

this.addColumnValidator("Number", newItem.validateField, newItem);
this.addColumnValidator("Number", newItem.checkCommunicationDuplicates, newItem);
 

:

Grigoriy,

Thanks Grigoriy, I got an idea.

Show all comments