# C1.C1Pdf.ButtonAction

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_C1Pdf_ButtonAction" data-uid="C1.C1Pdf.ButtonAction" class="text-break">ButtonAction Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies actions that can be performed when a <a class="xref" href="C1.C1Pdf.PdfPushButton.html">PdfPushButton</a>'s state
changes as described by <a class="xref" href="C1.C1Pdf.ButtonAction.html">ButtonAction</a>.
For most actions, additional information needs to be specified by the
<a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property on the action.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Pdf.html">C1.C1Pdf</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="C1_C1Pdf_ButtonAction_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum ButtonAction</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum ButtonAction</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_CallMenu">CallMenu</td>
        <td><p>Calls an Adobe Acrobat's menu item
specified by the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
<p>
For instance, setting <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> to <b>"SaveAs"</b>
will invoke the save file dialog, while setting it to <b>"Close"</b> will close
the document. For the complete listing please refer to the Adobe documentation.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_ClearFields">ClearFields</td>
        <td><p>Clears all fields of the containing <b>AcroForm</b>.
To prevent some of the fields from being cleared,
assign a comma-separated list of their names (e.g. <b>Field1,Field2</b>)
to the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_GotoPage">GotoPage</td>
        <td><p>Goes to the page
specified by the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.PageNo.html#C1_C1Pdf_PdfPushButton_Action_PageNo">PageNo</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_HideField">HideField</td>
        <td><p>Hides a field if it were visible.
The <a class="xref" href="C1.C1Pdf.PdfFieldBase.Name.html#C1_C1Pdf_PdfFieldBase_Name">Name</a> of the field should be assigned
to the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_OpenFile">OpenFile</td>
        <td><p>Opens a file
specified by the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_OpenUrl">OpenUrl</td>
        <td><p>Opens a URL
specified by the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Pdf_ButtonAction_ShowField">ShowField</td>
        <td><p>Shows a field if it were hidden.
The <a class="xref" href="C1.C1Pdf.PdfFieldBase.Name.html#C1_C1Pdf_PdfFieldBase_Name">Name</a> of the field should be assigned
to the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.Command.html#C1_C1Pdf_PdfPushButton_Action_Command">Command</a> property
of the <a class="xref" href="C1.C1Pdf.PdfPushButton.Action.html">PdfPushButton.Action</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
