Skip to content

[DynamicForm and ModernTaxonomyPicker] using default value in taxonomy column does not work #2040

@diabhoil

Description

@diabhoil

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.21.0 and 3.22.0]

First watched in 3.21.0, then updated to 3.22.0, same error. Looked in the repos and did find the same source code. So I guess there was no change so far.

Expected / Desired Behavior / Question

Expect the DynamicForm to load with the taxonomy column and its default value and the correct label

Observed Behavior

I am not sure if it is kinda related to #2028

Loading the DynamicForm break when I have a taxonomy column with a default value. The "default value" seems to have no "label" property and breaks:

Image

Results in:
Image

Some more environment details:

  • Tenant default language: en-US
  • Site default language: en-US
  • Site additional languages: de-DE
  • TermStore default language: en-US
  • TermStore additional languages: de-DE
  • My UI Language: de-DE

but even with UI Lang = en-US it breaks:
Image

I tried with terms with default language only and with both languages.

Maybe another bug? I have a term label which looks like "Part 1 #x7c Part 2". The Part 1 of the label was not shown in the "name" property while debugging, even when including # in the term label is valid!

Steps to Reproduce

  1. Create a SPFx webpart using the DynamicForm
  2. Create a list with a taxonomy column and a default value set
  3. Try to open the DynamicForm for that list

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions