cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the smart filter bar mandatory fields alert text message

0 Kudos

I am integrated smart filter bar into my application. I set mandatory to two inputs in our smart filter bar control configuration.once i click on go button without fill inputs then i got alert message with message "Fill All the required fields". How can i change this message to our custom message.alert.png

Accepted Solutions (0)

Answers (1)

Answers (1)

mvaibhav
Contributor

Hi Murali,

If you just need to change the text of the Error Message, you can do it in the following way :

In the initMethod() of the view, get the smart filter bar by it's ID & set the error message you want to display in the following way :.

var oSmartFilterBar = this.getView().byId("smartFilterBar");

oSmartFilterBar._sMandatoryErrorMessage = "Fill me"; //Your custom Message

Thanks,

Vaibhav

0 Kudos

Thanks for your answer.It's working fine.