20
Views
2
Comments
Solved
[LazyDropdownSearch] how do I change the "No results" message in the LazyDropdownSearch widget?
lazydropdownsearch
Reactive icon
Forge component by Steven Decock
Application Type
Reactive

how do I change the "No results" message in the LazyDropdownSearch widget?

Снимок65.PNG
Solution

Hey @Nursulu Ospan ,

If you want to change the message 

1)Create onRender action 

2)Inside that action drag drop a Javascript node

3)In Javascript put the below code


var flag=document.getElementsByClassName("no-results").length>0

if(flag){

    document.getElementsByClassName("no-results")[0].innerText="Your msg";

}





It will definitely work.


If still it does not work I will provide the OML.

Thanks & Regards,

Sudip Pal

Solution

Hey @Nursulu Ospan ,

I am attaching the OML for this problem.

Thanks & Regards,

Sudip Pal

LazySearchDemo.oml
Solution

Hey @Nursulu Ospan ,

If you want to change the message 

1)Create onRender action 

2)Inside that action drag drop a Javascript node

3)In Javascript put the below code


var flag=document.getElementsByClassName("no-results").length>0

if(flag){

    document.getElementsByClassName("no-results")[0].innerText="Your msg";

}





It will definitely work.


If still it does not work I will provide the OML.

Thanks & Regards,

Sudip Pal

Solution

Hey @Nursulu Ospan ,

I am attaching the OML for this problem.

Thanks & Regards,

Sudip Pal

LazySearchDemo.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.