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?
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_F80D43D655124BE398E9F7E4BF48A9F2. 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!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.