Output Data Source - Set an Initial or Default Value

166
2
01-03-2022 03:34 PM
Status: Open
Labels (2)
DaveFullerton
Occasional Contributor III

I am using the new Search widget with a locator in a scrolling application. It is desirable to display the address text in a Text widget in several places down the page. Once the user selects an address in the Search widget the address text can be found in the Search widget's output data source. Before any data are in the output data source, the Text widget looks like this:

DaveFullerton_0-1641252775543.png

It would be less confusing for the user and look a lot more professional looking if this value could initially be an empty string.

2 Comments
ShengdiZhang

Hi @DaveFullerton ,

A workaround is to use an Expression instead of an Attribute.

ShengdiZhang_0-1641547070493.png

Regards,

Shengdi

DaveFullerton

OK, I see.  Nice idea.  So instead of seeing {ADDRESS} in the interface we would see the expression name 'Result'.  I tried it with an empty string (no, it was a single space) and it worked, but that would be confusing to maintain.  It just comes down to thinking of a good expression name (placeholder text).

I hope some day we will be able to use Arcade and do some conditional logic to handle how to display null values.  Happy to wait for that if it makes sense.