# Replace\_attributes in form

**URL:** https://discuss.tryton.org/t/replace-attributes-in-form/9111
**Category:** Developer
**Created:** [February 23, 2026, 8:26pm UTC](https://discuss.tryton.org/t/replace-attributes-in-form/9111 "2026-02-23T20:26:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gruenfischer](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@Gruenfischer](https://discuss.tryton.org/u/Gruenfischer)
#### Post date: [February 23, 2026, 8:26pm UTC](https://discuss.tryton.org/t/replace-attributes-in-form/9111/1 "2026-02-23T20:26:45Z")

</div>

H Hi everyone,

I’m trying to extend a Tryton 7.8 wizard result view and change the root form layout from `col="2"` to `col="4"` via view inheritance. The inherited view loads without XML errors, but the layout does not change (it still behaves like `col="2"`).

Original view:

```auto
<?xml version="1.0"?>
<form col="2">
  <label name="file"/>
  <field name="file"/>
</form>

```

My extension (only trying to change `col`):

```auto
<data>
<xpath expr="/form" position="replace_attributes">
  <form col="4"/>
  </xpath>
</data>

```

I tried different identification paths for the form, like:

```auto
<data>
  <xpath expr="/form[./field[@name='file']]" position="replace_attributes">
    <form col="4"/>
  </xpath>
</data>

```

Thanks for your help,  
Regards Jakob

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 24, 2026, 4:59pm UTC](https://discuss.tryton.org/t/replace-attributes-in-form/9111/2 "2026-02-24T16:59:05Z")

</div>

I suspect that either the extension is not applied on this view or that the change happens but it generate the same layout.

---

<div class="post-metadata">

### Author: ![Gruenfischer](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@Gruenfischer](https://discuss.tryton.org/u/Gruenfischer)
#### Post date: [February 24, 2026, 5:35pm UTC](https://discuss.tryton.org/t/replace-attributes-in-form/9111/3 "2026-02-24T17:35:09Z")

</div>

@ced thanks for your reply,  
the view is applied to the correct one, I checked in the client, two added fields are displayed. but unfortunately not in a 1x4 but in a 2x2 grid (in both clients).  
Any suggestions how to debug this a little further?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 24, 2026, 9:37pm UTC](https://discuss.tryton.org/t/replace-attributes-in-form/9111/4 "2026-02-24T21:37:27Z")

</div>

check the output XML for the view
