# Bug FPCV-46 - It is possible to change custom field format by providing different format to update action

Project: Feature Project - Calculated value
Status: closed
URL: https://community.openproject.org/work_packages/FPCV-46

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom fields |
| Target versions | 16.5.0 |
| Observed in versions | 16.4.0 |
| Bug found in version (deprecated) | 16.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Ivan Kuchin |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as an admin
    
2.  Go to the custom fields admin page (or project attributes admin page)
    
3.  Create custom field of format boolean
    
4.  Open edit page of that custom field
    
5.  In inspector find hidden field with name `custom_field[field_format]` and change the value from `bool` to `text`
    

### What is the buggy behaviour?

*   Custom field format changes to `Long text`
    

### What is the expected behaviour?

1.  The value should be readonly and trying to set it should be ignored
    

### Environment information

**OpenProject version**

16.4
