Skip to Content
0

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

Mar 02 at 02:13 PM

38

avatar image
Former Member

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

alert.png (24.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vaibhav Maheshwari Mar 02 at 06:14 PM
1

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


smarterror.png (2.4 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for your answer.It's working fine.

0