SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

Field Customizer not working on fields with spaces using gulp serve. #9424

Open alecwantstobattle opened 9 months ago

alecwantstobattle commented 9 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

πŸ’₯ SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

I created the project for a field customizer using react as framework, in the serve/config.json I updated the pageUrl to my site and referenced the field on the fieldCustomizers property using its internal name Column_x0020_One, run gulp serve and clicked confirm to use debug-scripts. Then nothing happened, the cell didn't render the component.

Steps to reproduce

  1. create a list with column name Column One
  2. create spfx extension using yo @microsoft/sharepoint
  3. update the pageUrl property in the config.json
  4. update the fieldCustomizers property using the InternalName Column_x0020_One in the config.json
  5. run gulp serve
  6. confimed using debug-scripts

Expected behavior

gulp serve should load the field customizer and the component should be loaded on the column.

ghost commented 9 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

alecwantstobattle commented 9 months ago

Working when I tried using the DisplayName as a workaround referenced on this closed issue.