# Jira Cloud Custom Field Type edit mode cannot display fieldValue

**URL:** <https://community.developer.atlassian.com/t/jira-cloud-custom-field-type-edit-mode-cannot-display-fieldvalue/59677>\
**Category:** Jira Cloud\
**Tags:** jira-cloud, custom-field, forge\
**Created:** [July 7, 2022, 5:52am UTC](https://community.developer.atlassian.com/t/jira-cloud-custom-field-type-edit-mode-cannot-display-fieldvalue/59677 "2022-07-07T05:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KCWong](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@KCWong](https://community.developer.atlassian.com/u/KCWong)\
**Post date:** [July 7, 2022, 5:52am UTC](https://community.developer.atlassian.com/t/jira-cloud-custom-field-type-edit-mode-cannot-display-fieldvalue/59677/1 "2022-07-07T05:52:06Z")

</div>

I’m trying to implement a custom field type for Jira Cloud, with a custom edit interface.

I have the manifest like this:

```auto
    jira:customFieldType:
    - key: custom-field-type-1
        name: Custom Field Type 1
        description: String
        type: string
        validation: 
            expression: value != null
            errorMessage: "Validation failed"
        formatter: 
            expression: "`${value}`"
        value:
            function: cft1-getValue
        function: cft1-view
        edit:
            function: cft1-edit

```

The function cft1-edit points to:

```auto
const GetEdit = () => {
    const onSubmit = (formValue) => {
        return formValue.value;
    }
    const {
        platformContext: {
            issueId
        },
        extensionContext: {
            fieldId,
            fieldValue
        }
    } = useProductContext();
    console.log("issueId: " + issueId);
    console.log("fieldId: " + fieldId);
    console.log("fieldValue: " + fieldValue);
    return (
        <CustomFieldEdit onSubmit={onSubmit} header="Name" width="medium" >
            <Fragment>
                <TextField label="Value" name="value" type="string" isRequired defaultValue="{fieldValue}" />
            </Fragment>
        </CustomFieldEdit>
    );
}

```

The 3 console.log() prints correctly, but in the UI, {fieldValue} is not resolved, it shows up as a literal string.

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/6/5/65fa39522c5754965995381e7805766724ae19db.png)

The only custom field example I can find, Risk Assessment custom field ([Bitbucket](https://bitbucket.org/atlassian/forge-risk-assessment-custom-field/src/master/)), does not display the current value in its edit interface.

---

<div class="post-metadata">

**Author:** ![KCWong](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@KCWong](https://community.developer.atlassian.com/u/KCWong)\
**Post date:** [July 7, 2022, 6:00am UTC](https://community.developer.atlassian.com/t/jira-cloud-custom-field-type-edit-mode-cannot-display-fieldvalue/59677/2 "2022-07-07T06:00:38Z")

</div>

Found out why… I need to remove the double quotes, i.e.

```auto
<CustomFieldEdit onSubmit={onSubmit} header="Name" width="medium" >
            <Fragment>
                <TextField label="Value" name="value" type="string" isRequired defaultValue={fieldValue} />
            </Fragment>
        </CustomFieldEdit>

```
