search bar

2995
7
Jump to solution
08-06-2015 04:20 PM
LefterisKoumis
Occasional Contributor III

That it could be a very easy solution.

How can I render the search bar in the themes invisible or just remove it?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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

View solution in original post

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

Lefteris,

   In WAB 1.1 you just click the eye in the upper right corner of the Geocoder widget.

Preview.jpg

LefterisKoumis
Occasional Contributor III

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.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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?

0 Kudos
LefterisKoumis
Occasional Contributor III

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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

0 Kudos
LefterisKoumis
Occasional Contributor III

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.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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

0 Kudos