-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic form trying to load Image tags with wrong internal name #1422
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
@Perneel - thank you for reporting the issue! Thanks! |
@AJIXuMuK , thanks for your response. The goal is to edit metadata of a selected file. Users provide documents in a library and with the help of a React webpart, they get an overview with a list of existing documents. If they select an item, metadata is shown together with the document itself in a custom viewer. By clicking the edit button, an edit form (dynamicform) opens in a Panel (fluent ui): When I click on the edit button, I get the error message as shown in my original post and the form keeps showing the loading spinner.
|
I'm experiencing the same @AJIXuMuK, @Perneel, On my dev-tenant, when creating a new list with new Taxonomy Columns, things work as expected. The problem seems to be in this line:
|
The point is that the code makes the assumption that the corresponding note field has a specific display name. Which is not always the case. I worked around it by updating the display names of the note fields to But this is probably not watertight. |
I've created a PR to fix this @joelfmrodrigues, 🤙 |
@martinlingstuyl just saw that, super quick turnaround, many thanks! |
You've got to forge the iron while it's hot, they say over here 😁 |
Fixes DynamicForm trying to load TaxonomyFields with wrong display name. Closes #1422
@Perneel the PR from Martin has been merged and the fix should be available in the beta release within a few minutes. If you have the chance to test it at your end, please let us know if all is resolved. |
@joelfmrodrigues , I have just tested it with the beta release (3.14.0-beta.4302330) and can confirm that the DynamicForm is loading. |
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.12.0]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
The form to open.
Observed Behavior
When the dynamic form is loading, I get a 400 bad request error. This is resulting in a spinner that keeps loading, no feedback to the user.
In developer tools (F12):
Request:
/_api/web/lists(@listId)/Fields/getByInternalNameOrTitle('MediaServiceImageTags_0')/InternalName?@listId=guid'thelistguid'
Response:
{"error":{"code":"-2147024809, System.ArgumentException","message":"Column 'MediaServiceImageTags_0' does not exist. It may have been deleted by another user."}}
If I inspect my list (SP Insider), the field with internal name MediaServiceImageTags_0 does not exist. However, MediaServiceImageTags does. Where do the fields get read from? As a work-around, is there a way to exclude fields from being added to the dynamic form?
Steps to Reproduce
Create a subsite in a site collection
Add a document library
Create a dynamic form with react
The text was updated successfully, but these errors were encountered: