Showing a filter widget on the startup

335
4
06-04-2021 02:21 AM
AdjiChandra_Tistariawan
New Contributor II

Hello,

I wanted to create a filter widget that shows to the users on the startup like the splash widget and they can input the certain code. After the users input the certain code, the users will get the result of the filtered layer. and i wanted to make it simple for the user to just input the code, not seeing the filter widget with the expression. Is there anyways to make it possible?

 

Regards,

Adji

0 Kudos
4 Replies
jcarlson
MVP Regular Contributor

You can't get the filter to appear like a splash page, but you can click the circle icon to have a widget open with the app.

jcarlson_0-1622809893108.png

In addition, you can set the filter to prompt for a value and apply automatically. But there's no way to do this without showing the widget itself.

That said, you have a bit more freedom to adjust things and put widgets into a splash window if you use Experience Builder.

jcarlson_1-1622810299151.png

You should check that out and see if it can accomplish what you're going for.

- Josh Carlson
Kendall County GIS
AdjiChandra_Tistariawan
New Contributor II

Thank you for the response, I will try your suggestions and from other users too.

0 Kudos
LefterisKoumis
Regular Contributor

Yes, off course it is possible. You have to make your custom widget to start  at the  startup. See Config.js of the app below. Then write the Js to act as soon as the user enter the code in the widget to perform the query.

"widgets": [{
            "uri": "widgets/YourWidget/Widget",
            "id": "YourWidget",
            "IsController": false,
            "name": "YourWidget",
            "openAtStart": true
          },

 

AdjiChandra_Tistariawan
New Contributor II

Thank you for the response, I will try your suggestions and from other users too.

0 Kudos