Skip to content

pacx forms clean

github-actions[bot] edited this page Jul 22, 2025 · 2 revisions

"Fixes" the content of the main form of a given table

Aliases

pacx form clean

Usage

When you create a new table, the default form comes out with:

  • A single tab that has no name
  • A single section, in the main tab, that has no name
  • The owner field placed directly in the single section
  • "Created On", "Created By", "Modified On", "Modified By" fields that are invisible

The current command applies the following changes to the table structure:

  • It sets the name attribute on each unnamed tab, starting from the tab label
  • It sets the name attribute on each unnamed section, starting from the parent tab name and the section label
  • Removes the "Owner" field from the first tab, if present.
  • Creates a new tab called "Administration", with a single untitled 2-columns section, containing "Created On", "Created By", "Modified On", "Modified By" and "Owner" fields.

The tab and section names are set only if the tab/section is currently unnamed, and only if the calculated name does not conflicts with a name of another tab/section of the same form.

The "Administration" tab is created only if the form does not contains a tab called tab_admin.

Please note: to update the form the command needs to create a temporary solution in the target environment. The temporary solution is deleted automatically once the operation is complete.

Arguments

Long Name Short Name Required? Description Default value Valid values
table t Y The name of the table to which the form belongs - String
form f N The name of the form to initialize. It is required only if the table has more than one Main form. - String
solution s N The name of the solution that contains the table. If not provided, the default solution will be used - String
output out N If specified, the command will export the original and updated version of the temporary solution in the specified folder. The folder must exist. - String

Command list

Clone this wiki locally