In the ArcGIS Online field calculator I am trying to combine a few other fields into one (address field) and cannot figure out how to put a space between the fields. I am sure it is something simple, but I am unable to find the answer elsewhere. Please help! I've tried everything I can think of.
Solved! Go to Solution.
Any html in the string will be interpreted, when the popup is displayed in a browser. So you can use html non-breaking space characters - - which will be displayed as spaces in the popup. Or a little fancier, you can also use in-line css styling to left-pad the line.
Outputing this as a string should work.
<p style="padding-left:10px;">This is your error!</p>
If using the calculate option in ArcGIS Online, you need to apply a specific filter in order to only calculate specific fields. Can you log an idea about calculating fields based on table selection on ArcGIS Ideas. I think this would be helpful to others also:
Is field calculation in AGOL restricted to Arcade?
Then is the best suggestion is to do the 'work' of field concatenation in ArcGIS PRO or ArcMap? (where you have options, like superior Python )
Dan- if a a feature service is hosted on AGOL, you are limited to playing by the AGOL rules. I've done python calculations (my preference; your influence) in ArcGIS Pro on feature services hosted on our own portal....
I was able to make the two suggestions above work in HTML view (highlighted yellow below) of a custom popup, outside of the arcade expression. The paragraph padding method worked better, as the non breaking spaces were converted to spaces the next time I edited the popup configuration.