# Default to "Edit Separately" for Padding in Custom Modules

**URL:** <https://community.hubspot.com/t/default-to-edit-separately-for-padding-in-custom-modules/73443>\
**Category:** CMS Development\
**Created:** [January 21, 2023, 1:28am UTC](https://community.hubspot.com/t/default-to-edit-separately-for-padding-in-custom-modules/73443 "2023-01-21T01:28:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellimccale](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@ellimccale](https://community.hubspot.com/u/ellimccale)\
**Post date:** [January 21, 2023, 1:28am UTC](https://community.hubspot.com/t/default-to-edit-separately-for-padding-in-custom-modules/73443/1 "2023-01-21T01:28:55Z")

</div>

Hi there,

Is there an option for the Spacing field to default to “Edit Separately” for padding? This is the initial padding interface:

 ![ellimccale_1-1674264102642.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b2bb5937be2419589dc365716026d6c3afe393cd.png)

I would prefer it to default to this:

 ![ellimccale_0-1674264078479.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/5/5eabd7f3dda7c050b0be028139200f7addb50066.png)

Secondly, is it possible to disable left and right padding? I hazarded a guess in fields.json, but it throws an error in the CLI:

```lia-code-sample
{
 "label": "Spacing",
 "name": "spacing",
 "type": "spacing",
 "visibility": {
 "hidden_subfields": {
 "margin": true,
 "padding": {
 "left": true
 "right": true
 }
 }
 }
}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [January 23, 2023, 2:03pm UTC](https://community.hubspot.com/t/default-to-edit-separately-for-padding-in-custom-modules/73443/2 "2023-01-23T14:03:06Z")

</div>

If you set a default for any of the padding values (even if the value is just null) it’ll default to the Edit Seperately state.

You can’t completely hide select values in padding or margin but using **limits** you can set their **min** and **max** to 0 to disable them (note: limits requires you to include a “units” value).

```lia-code-sample
{
 "name": "spacing",
 "label": "Spacng",
 "required": false,
 "locked": false,
 "type": "spacing",
 "inline_help_text": "",
 "help_text": "",
 "visibility": {
 "hidden_subfields": {
 "margin": true
 }
 },
 "limits": {
 "padding": {
 "left": {"max": 0, "min": 0, "units": ["px"]},
 "right": {"max": 0, "min": 0, "units": ["px"]}
 }
 },
 "default": {
 "padding": {
 "top": {
 "value": 0,
 "units": "px"
 },
 "right": {
 "value": 0,
 "units": "px"
 },
 "bottom": {
 "value": 0,
 "units": "px"
 },
 "right": {
 "value": 0,
 "units": "px"
 }
 }
 }
}

```

---

<div class="post-metadata">

**Author:** ![ellimccale](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@ellimccale](https://community.hubspot.com/u/ellimccale)\
**Post date:** [January 24, 2023, 10:40pm UTC](https://community.hubspot.com/t/default-to-edit-separately-for-padding-in-custom-modules/73443/3 "2023-01-24T22:40:20Z")

</div>

Perfect - works well enough for my uses. Thank you!
