Is there any way to bold certain elements in an arcade expression? The "source" button is missing from portal for the configure pop-up + add text element, so this would have to be done in Arcade.
I want to bold these field headings: ADDRESS: and LEGAL UNIT:
Solved! Go to Solution.
Not until Enterprise 11.0 (hopefully!), I'm afraid. You can see it in AGOL, the way there's a separate Arcade object you can add to popups there, and this allows you to pipe in HTML to specific parts of the expression output.
return {
type : 'text',
text : 'Here is some <b>bold</b> text!'
}
So for now, you'll just have to endure less-than-perfect popups, but know that the solution is coming!
Not until Enterprise 11.0 (hopefully!), I'm afraid. You can see it in AGOL, the way there's a separate Arcade object you can add to popups there, and this allows you to pipe in HTML to specific parts of the expression output.
return {
type : 'text',
text : 'Here is some <b>bold</b> text!'
}
So for now, you'll just have to endure less-than-perfect popups, but know that the solution is coming!
Thanks for the quick reply! We will watch for it!
I don't have any experience with this sort of thing, and this almost certainly won't work, but I thought I'd ask out of curiosity:
If you put HTML tags directly in the text, what happens? Example: "foo <b>bar</b>"
I only ask because I stumbled upon an scenario (in an external system -- IBM Maximo Spatial) where I could put a HTML hyperlink in a db view's field -- and the map (ArcGIS JavaScript API?) picked up the HTML as a proper hyperlink. I would have never guessed that would work. Maybe HTML bolding would have worked too.
I'm using the new map viewer, not classic and there seems to be some of that functionality missing.
Unfortunately, I can't call out the fields separate from the expression because the expression is looping through and finding where there are multiple owners for properties. If I create an expression for each field, it will repeat the fields instead of grouping them together.
Reads as literal text. There are some WYSIWYG formatting tools in the popup text builder, but you can't get at those inside of an expression.