Select to view content in your preferred language

Choice filter not working web form

582
4
08-18-2023 01:06 AM
tiwariC
Emerging Contributor

Dear Colleagues,

I have created a form on  connect to be used on the web.  The choice filter works fine in the app and on connect but does not work in the browser.

 

Attached is the xls,  can someone please provide some insight?

4 Replies
DougBrowning
MVP Esteemed Contributor

The code looks ok so my guess is starting your field names with underscores.  This page says it is not supported and it is not good practice.  I would start there.  Surprised it published really.  Hope that works

  • Do not start field or table names with an underscore or a number.

https://support.esri.com/en-us/knowledge-base/faq-what-characters-should-not-be-used-in-arcgis-for-f... 

0 Kudos
tiwariC
Emerging Contributor

Changing the fields did not resolve the situation

@IsmaelChivite  & @JamesTedrick do you think you guys can have a quick look?

0 Kudos
RobertAnderson3
MVP Regular Contributor

I just noticed this as well, I don't have underscores or numbers starting my field names. The choice filter does use numbers as the options though.

The form I was looking at doesn't usually get used on the web, but I was trying something because of another issue I'm having and noticed it. (Also seems relevant doesn't work properly on the web form..)

I was looking because I have a search() appearance not listing any options in my web form, just the option in the choices itself, it works in the app though.

0 Kudos
IsmaelChivite
Esri Notable Contributor

Update on this. 

 The problem is in the choice_filter column. You should not use quotes:

  • This is good: ${select_oblast}=adm1
  • This is not good: ${select_oblast}=”adm1”

After making this change, the web app is happy. See below:

Esri Form.gif