# Why are email fields hidden on deactivated records?

**URL:** https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849
**Category:** Developer
**Created:** [June 10, 2020, 9:54am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849 "2020-06-10T09:54:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [June 10, 2020, 9:54am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/1 "2020-06-10T09:54:33Z")

</div>

Is there a reason why email fields get hidden when a record is deactivated?

Example:  
[https://demo5.6.tryton.org/#demo5.6/model/res.user/1;name="Users"&views=[99%2C101]](https://demo5.6.tryton.org/#demo5.6/model/res.user/1;name=%22Users%22&views=%5B99%2C101%5D)

When you untick the _Active_ checkbox the _Email_ field gets hidden (also happens on the contact mechanisms form).

The same thing happens in the Web and Desktop clients, which is making me wonder whether this is a bug or a feature? 🤔 🐛

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [June 10, 2020, 10:09am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/2 "2020-06-10T10:09:12Z")

</div>

The email field uses the email widget so it seems there is a bug on this widget that hides the field when it’s readonly.

> [@dave](#):
>
> which is making me wonder whether this is a bug or a feature?

Strange feature 😒 its seems more a bug than a feature 🐛

---

<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: [June 10, 2020, 10:25am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/3 "2020-06-10T10:25:36Z")

</div>

It is a feature of the URL widgets. The input is hidden when it is read-only to reduce the space consumed because all the information are available on the button.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [June 10, 2020, 10:44am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/4 "2020-06-10T10:44:49Z")

</div>

> [@ced](#):
>
> The input is hidden when it is read-only

But then the user can not see nor copy the url.

---

<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: [June 10, 2020, 10:46am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/5 "2020-06-10T10:46:54Z")

</div>

Right-clicks works on the web and [Copy link with the Url widget (#1340) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue1340)

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [July 10, 2020, 10:46am UTC](https://discuss.tryton.org/t/why-are-email-fields-hidden-on-deactivated-records/2849/6 "2020-07-10T10:46:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
