Skip to content

Conditional logic causes file field to disappear from table view #725

@adamthomas-builtdna

Description

@adamthomas-builtdna

I've run into a weird issue where if I try to add conditional logic to a file upload field it disappears from the table view. It's still present in the side panel view and works fine but the column is completing missing from the table view.

This works fine in both table and side panel:

    import_file: {
      dataType: "string",
      name: "File",
      validation: { required: true },
      storage: {
        storagePath: "import_types/PLATES/imports/{entityId}/{file}",
        acceptedFiles: [".csv"],
      },
    },

This works fine in the side panel but the column disappears in the table:

    import_file: ({ values }) => ({
      dataType: "string",
      name: "File",
      validation: { required: true },
      storage: {
        storagePath: "import_types/PLATES/imports/{entityId}/{file}",
        acceptedFiles: [".csv"],
      },
      readOnly: values?.is_valid === true,
    }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions