<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add the default blue warning message in custom Python Toolboxes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629293#M74468</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a lot for your suggestion and for taking the time to reply. Although it’s not exactly what I’m looking for, I really appreciate your message.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Albert&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 11:08:55 GMT</pubDate>
    <dc:creator>AlbertGallego</dc:creator>
    <dc:date>2025-07-02T11:08:55Z</dc:date>
    <item>
      <title>How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629286#M74465</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm developing a custom Python Toolbox (.pyt) in ArcGIS Pro, and I'd like to include the default &lt;STRONG&gt;blue warning message&lt;/STRONG&gt; &lt;SPAN&gt;that appears in many built-in geoprocessing tools. Specifically, the one that says: “This tool modifies the Input Table”, as shown in the snapshot below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snapshot_blue_warning.png" style="width: 352px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135592i57AD900138B8F359/image-size/large?v=v2&amp;amp;px=999" role="button" title="snapshot_blue_warning.png" alt="snapshot_blue_warning.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In ArcGIS Pro tools, this message appears just below the tool's name and above the input parameters. It's very useful to inform users that the tool will overwrite or modify the input data directly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any official way to enable or configure this message for custom Python tools?&lt;BR /&gt;Or is this behavior restricted to tools developed internally by Esri?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 09:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629286#M74465</guid>
      <dc:creator>AlbertGallego</dc:creator>
      <dc:date>2025-07-02T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629288#M74466</link>
      <description>&lt;P&gt;It is part of esri's internal tool structure, however, you could "fake" it by adding a boolean parameter as the first parameter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;name : "proceed"&lt;/P&gt;&lt;P&gt;type : boolean&lt;/P&gt;&lt;P&gt;description : " This tool modifies the input file..&amp;nbsp; accept to proceed, bail otherwise"&lt;/P&gt;&lt;P&gt;The description is the hover description as described in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm" target="_blank"&gt;Set script tool parameters—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Obvious a True would allow one to proceed, False to quit... Perhaps make False the default requiring an overt True selection&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 09:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629288#M74466</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-07-02T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629293#M74468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a lot for your suggestion and for taking the time to reply. Although it’s not exactly what I’m looking for, I really appreciate your message.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Albert&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 11:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629293#M74468</guid>
      <dc:creator>AlbertGallego</dc:creator>
      <dc:date>2025-07-02T11:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629335#M74471</link>
      <description>&lt;P&gt;kind of a bodgy way to get what you want is have it so when validate or run is clicked have a tkinter message confirmation popup that tells the user what will happen&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;response = messagebox.askyesno(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Confirm Action&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;Are you sure you want to proceed?&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; response: &lt;/SPAN&gt;&lt;SPAN class=""&gt;# True if "Yes" was clicked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;continue with toolbox if yes was clicked, return otherwise&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629335#M74471</guid>
      <dc:creator>GISDepartmentMFM</dc:creator>
      <dc:date>2025-07-02T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629862#M74474</link>
      <description>&lt;P&gt;To add to the moderately hacky workarounds, you can add a warning message to the top parameter.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HaydenWelch_0-1751552081185.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135734i45BEF9CE4DB91498/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HaydenWelch_0-1751552081185.png" alt="HaydenWelch_0-1751552081185.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HaydenWelch_1-1751552196585.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135735i3796B067ED6184E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HaydenWelch_1-1751552196585.png" alt="HaydenWelch_1-1751552196585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

class Toolbox:
    def __init__(self):
        self.label = "Warning Test"
        self.alias = "WarningTest"
        self.tools = [Tool]
        
class Tool:    
    def __init__(self) -&amp;gt; None:      
        self.description = "Test tool"
        self.label = "Testing"
        return
    
    def getParameterInfo(self) -&amp;gt; list:
        acknowledge = arcpy.Parameter(
            displayName="Acknowledge",
            name="acknowledge",
            datatype="GPBoolean",
            parameterType="Required",
            direction="Input",
        )
        acknowledge.value = False
        return [acknowledge]
    
    def updateParameters(self, parameters: list[arcpy.Parameter]) -&amp;gt; None: ...

    def updateMessages(self, parameters: list[arcpy.Parameter]) -&amp;gt; None:
        if not parameters[0].value:
            parameters[0].setWarningMessage('This Tool Modifies the Input Table, Please check this box to acknowledge')
        else:
            parameters[0].clearMessage()
    
    def execute(self, parameters: list[arcpy.Parameter], messages: list) -&amp;gt; None:
        if not parameters[0].value:
            arcpy.AddWarning('Please check the acknowledge box to run this tool')
            return
        ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629862#M74474</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-07-03T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629966#M74475</link>
      <description>&lt;P&gt;If you're authoring for Pro 3.4 or above you can check the new "Show banner that tool modifies the input data" option in the &lt;A href="https://pro.arcgis.com/en/pro-app/3.4/help/analysis/geoprocessing/basics/create-a-python-script-tool.htm#ESRI_SECTION1_0E7C909B7BB843B0A2341DD8F42F48F6" target="_self"&gt;General&lt;/A&gt; properties. Looks official to me!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidSolari_0-1751559314706.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135766iC86C229A6C7C6586/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidSolari_0-1751559314706.png" alt="DavidSolari_0-1751559314706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 16:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1629966#M74475</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-07-03T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1630057#M74476</link>
      <description>&lt;P&gt;That's really cool, but I don't think it's been made available using the PYT interface yet. That's still pushing config to the ArcPro engine without Python using the toolbox DAML&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 17:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1630057#M74476</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-07-03T17:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the default blue warning message in custom Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1630067#M74477</link>
      <description>&lt;P&gt;Crud, I missed that in the title, good catch! I whipped up an Idea to get this into Python Toolbox tools, &lt;A href="https://community.esri.com/t5/python-ideas/support-tool-attributes-in-python-toolboxes/idi-p/1630065/jump-to/first-unread-message" target="_self"&gt;please click the picture of a thumb&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 18:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-the-default-blue-warning-message-in/m-p/1630067#M74477</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-07-03T18:08:00Z</dc:date>
    </item>
  </channel>
</rss>

