diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
index cbd7a519119..a65de8a6daf 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js
@@ -460,8 +460,12 @@ function loadDevices(searchType, searchParam) {
$("#loading-content").remove();
attachDeviceEvents();
- $(this).closest('.dataTables_wrapper').find('div[id$=_filter] input')
- .after('Advance Search')
+ if($('.advance-search').length < 1){
+ $(this).closest('.dataTables_wrapper').find('div[id$=_filter] input')
+ .after('Advance Search');
+ }
+
}, {
"placeholder": "Search By Device Name",
"searchKey": "name"