Product: Mingcedar Studio DESIGNER
Close Current Popup | Mingcedar Studio
Close the current popup from its Close, Cancel, OK or Done button, optionally returning a result.
<div class="manual-doc-article manual-doc-article-section"><h2 id="interaction-close-current-popup">Interactions: Close Current Popup</h2>
Close the current popup from its Close, Cancel, OK or Done button, optionally returning a result.
<div class="doc-card-list">
<article class="doc-card">
<h3 id="interaction-close-current-popup-item-1">Overview</h3>
<p>This closes only the popup containing the bound object, with no Page Code. Place it inside the popup; it does not navigate the main page.</p>
</article>
<article class="doc-card">
<h3 id="interaction-close-current-popup-item-2">How to close or return a result</h3>
<p>By default, this behavior closes the popup without returning a value. To send a result to the opener, select Return data when this button is clicked (optional) and enter a result expression.</p>
<ul>
<li>Cancel / Close usually returns no result.</li>
<li>OK / Done can return <code>{ confirmed: true }</code> or another value the opener expects.</li>
<li>Enabled controls this behavior.</li>
<li>For a condition, cursor style, or disabled appearance, expand Advanced options and configure the applicable fields.</li>
</ul>
<div class="manual-code" data-code-language="text"><div class="manual-code-toolbar"><span>Text</span><span class="manual-code-tools"><small>Text</small><button type="button" data-copy-code data-copied="Copied" data-failed="Select and copy the code" aria-label="Copy code: Text">Copy code</button><span class="manual-code-status" role="status"></span></span></div><pre tabindex="0" class="docs-code-block shiki github-light" style="background-color:#fff;color:#24292e" tabindex="0"><code><span class="line"><span>// Result expression</span></span>
<span class="line"><span>({ confirmed: true, motorId: selectedMotorId })</span></span></code></pre></div>
</article>
<article class="doc-card">
<h3 id="interaction-close-current-popup-item-3">Limitations and troubleshooting</h3>
<p>Use only in a popup context. Returned data does not write to a PLC; use Write Tag / Write Tag Bit, subject to host permissions and auditing.</p>
</article>
</div>
<div class="docs-note-grid manual-doc-image-grid">
<figure class="docs-note-card manual-doc-image-card" id="interaction-close-current-popup-image-1">
<img src="/WEB_img/HQPPT/current-20261021/close-popup.png" alt="Close Popup editor showing Enabled and optional Return data" loading="lazy" decoding="async" />
<figcaption>
<strong>Figure 1: Close Popup editor</strong>
<p>The containing popup closes while the underlying page stays open; enable Return data only when the opener needs a result.</p>
</figcaption>
</figure>
</div>
</div>