That it could be a very easy solution.
How can I render the search bar in the themes invisible or just remove it?
Thanks.
Solved! Go to Solution.
Lefteris,
If you are talking about WAB v1.2 (what you get right now when using AGOL to create your WAB app) then the widget is called Search:
{ "uri": "widgets/Search/Widget", "position": { "left": 55, "top": 5, "relativeTo": "map" }, "version": "1.3", "id": "widgets_Search_Widget_35", "name": "Search", "label": "Search" },
Just delete this from your config.json
Lefteris,
In WAB 1.1 you just click the eye in the upper right corner of the Geocoder widget.
Thanks. If download the application and install it on your server, and then you decide to make it not visible, where is the configuration file? In the config.json are all the other widgets but not the geocoder.
Lefteris,
Strange I have the geocoder listed in my main config.json:
{ "uri": "widgets/Geocoder/Widget", "position": { "left": 45, "top": 5 }, "version": "1.2", "id": "widgets/Geocoder/Widget_3", "name": "Geocoder", "label": "Geocoder", "visible": false, "positionRelativeTo": "map" },
Are you talking about WAB 1.2?
the config.json is located under the root of the application? tha'ts the one I refer to.
I believe it is 1.1. Is there 1.2? ESRI's web appbuilder website says current version 1.1
Lefteris,
This is where people can get confused. The Web AppBuilder Developer version is on 1.1 the Web AppBuilder AGOL version is already on 1.2. The Web AppBuilder Developer version will be on 1.2 hopefully next week or so. What makes it even more confusing is if you look in your config.json you will find this property "wabVersion": "1.2", in the version that is called 1.1 and you will find "wabVersion": "1.3", in the version called 1.2
wow. how do you keep track of this. You are right, I am using 1.2 and I removed the search widget. The search bar is gone. Thanks.
Lefteris,
If you are talking about WAB v1.2 (what you get right now when using AGOL to create your WAB app) then the widget is called Search:
{ "uri": "widgets/Search/Widget", "position": { "left": 55, "top": 5, "relativeTo": "map" }, "version": "1.3", "id": "widgets_Search_Widget_35", "name": "Search", "label": "Search" },
Just delete this from your config.json