I have a map series in which each page is a different numbered grid. I'm attempting to have a text element on each side of layout display the page number for the adjacent grid. I currently have the dynamic text: "See Page: <dyn type="page" property="attribute" field="Page_E"/>" Is there a way to have the text box not display anything if there is no page number in associated field?
Solved! Go to Solution.
You can use the empty string tag to have a message (or just a blank space) when nothing is in the field. Learn more here: https://pro.arcgis.com/en/pro-app/latest/help/layouts/add-and-modify-dynamic-text.htm#ESRI_SECTION1_.... However it sounds like you want the text surrounding the dynamic text not to display, which the empty string tag won't accommodate. You could use Value dynamic text instead which supports Arcade expressions and write an expression that checks if there is a value, and if there isn't no text is displayed.
Something like
var a = $feature.Perim_ID
var message = "Page number " + a
if (a == " ")
{
message = ""
}
message
You can use the empty string tag to have a message (or just a blank space) when nothing is in the field. Learn more here: https://pro.arcgis.com/en/pro-app/latest/help/layouts/add-and-modify-dynamic-text.htm#ESRI_SECTION1_.... However it sounds like you want the text surrounding the dynamic text not to display, which the empty string tag won't accommodate. You could use Value dynamic text instead which supports Arcade expressions and write an expression that checks if there is a value, and if there isn't no text is displayed.
Something like
var a = $feature.Perim_ID
var message = "Page number " + a
if (a == " ")
{
message = ""
}
message
Thank you!