☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

remove_empty_inputs

Table of contents

Description:

This key toggles whether CloudCannon will remove empty nested inputs from an Object Input or Array Input using a given value from a Structure before persisting them to your file.

Setting this key to true will remove empty nested inputs from an Object Input or Array Input using a given value from a Structure before persisting them to your file. CloudCannon considers an input to be empty when its value is null, ' ', or undefined. If this key is true, empty inputs will be visible in the Data Editor but not the Source Editor. For this key to function, you must also configure id_key for the Structure, as removing inputs prevents CloudCannon from comparing Structure values.

You can also configure this behavior for all values of a Structure using remove_empty_inputs inside _structures.*.

Appears in:
└── [*]
    └── remove_empty_inputs
Type:
boolean
Default value:
false
Examples:
Open in a new tab