Select to view content in your preferred language

Issue with custom pop-ups on new Map Viewer

424
1
Jump to solution
11-29-2022 08:57 AM
Labels (1)
AnaHiraldo-Gomez
New Contributor III

Working on a simple custom pop-up using Text in a new web map.  See the code below:

{BUSINESS_LEGAL_NAME}

Business Registered as {COMPANY_REGISTER_FOR} 
Address: {BUSINESS_STREET} 
Suite: {BUSINESS_SUITE} 
City: {BUSINESS_CITY} 
State: {BUSINESS_STATE} 
Zip: {BUSINESS_ZIP} 
Email: {EMAIL_ADDRESS}

Business Scope: {DESCRIPTION}

Business Category: {expression/expr0}

The last item uses an expression that displays the field alias name if there is a value of 1 or more in the record.   

It all works well ONLY if, in the Fields list, the field is checked (visible). However, the whole point of building a custom script is to display the data in a certain way.  If I uncheck the field, I don't get the desired results.  Is anyone else having this same issue? 

Any Suggestions?

 

When field is selected it shows on pop-up (don't want that)When field is selected it shows on pop-up (don't want that)When the field is selected the script works, but further down it shows again and it shouldn'tWhen the field is selected the script works, but further down it shows again and it shouldn'tWhen the field is not selected script doesn't workWhen the field is not selected script doesn't work

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AnaHiraldo-Gomez
New Contributor III

Resolved.  The issue was in the expression.  We removed the array command and it works.

View solution in original post

0 Kudos
1 Reply
AnaHiraldo-Gomez
New Contributor III

Resolved.  The issue was in the expression.  We removed the array command and it works.

0 Kudos