Manage Table: Editor: Toggle Command Button on Auto Postback
## Overview
This controls the timing of switching buttons created in "[Process](/en/manual/faq-process-workflow)" and the timing of switching the display state of buttons with the server script "「elements.DisplayType」". This function is effective in the following cases.
1. When "Auto Postpack" is set in the advanced settings of the "[Status](/en/manual/table-management-status)" column when "[Process](/en/manual/faq-process-workflow)" is set
1. When "Auto Postpack" is set in the advanced settings of the column set in "「Condition」" of "[Process](/en/manual/faq-process-workflow)"
1. When "Auto Postpack" is set in the advanced settings of the column used in conditional branching such as if statements when controlling "「elements.DisplayType」"
|Settings|Description|
|:--|:--|
|If unchecked|Switches to the corresponding process management button at the timing of "Create" or "Update". In the case of "「elements.DisplayType」", it is executed only when the editing screen is displayed. |
|If checked|Switches to the corresponding process management button at the timing of changing the value of the column with "[Auto Postback](/en/manual/table-management-auto-postback)" set. In the case of "「elements.DisplayType」", it is executed at the timing of changing the value of the column with "[Auto Postback](/en/manual/table-management-auto-postback)" set used in conditional branching such as if statements. |
## Prerequisites
1. You need "Site Administration Permission" to set up.
## Operation Procedure
1. Open the target "[Table](/en/manual/table)".
1. Click "[Manage Table](/en/manual/table-management)" from the "Manage" menu.
1. Open the "[Editor](/en/manual/table-management-editor)" tab.
1. Check the "Switch command button on auto postback" checkbox at the bottom of the screen.
1. Click the "Update" button at the bottom of the screen.
### When using the server script "「elements.DisplayType」"
1. Register the following server script with the condition: "Before displaying the screen".
#### JavaScript
```javascript
if (model.ClassA === 'Cannot update') {
// Disable the update button
elements.DisplayType('UpdateCommand',2);
}
```
2. Check "[Auto Postback](/en/manual/table-management-auto-postback)" in the detailed settings of ClassA.
With the settings in 1.2., control by server script is enabled only when the edit screen is displayed, but the update button will not change even if the value of Category A is changed after that. However, by checking "Switch command button to auto postback" in addition to 1.2., the update button will be enabled/disabled according to the change in the value of Category A.
## Related information
<div id="ManualList"><ul><li><a href="/en/manual/table">Table Function</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management">Manage Table</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-status">Manage Table: Column: Status</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-editor">Manage Table: Editor</a><span>06.20.2025 up</span></li>
<li><a href="/en/manual/table-management-auto-postback">Table Management: Editor: Item Detail Settings: Auto Postback</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/faq-process-workflow">FAQ: Using the process function to create workflows (approval processes) such as approval requests</a><span>06.20.2025 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />