Question
Override Account communication options ( NUI ) detail and set field validation
10:45 Oct 03, 2018
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
2 comments
20:13 Oct 03, 2018
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);
:
Show all comments