Skip to content
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

Field Customizer: Field Customizer can't be applied to Name column in Document Library #1207

Closed
1 of 4 tasks
AJIXuMuK opened this issue Jan 5, 2018 · 7 comments
Closed
1 of 4 tasks
Labels
area:spfx Category: SharePoint Framework (not extensions related) type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@AJIXuMuK
Copy link
Collaborator

AJIXuMuK commented Jan 5, 2018

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

Field Customizer can be applied to Name column in Document Library

Observed Behavior

Field Customizer can't be applied to Name column in Document Library

Steps to Reproduce

  • Create simple Field Customizer
  • try to apply it to the FileLeafRef or LinkFilename field in any document library with CSOM/JSOM/REST:
var ctx = new ClientContext("https://contoso.sharepoint.com");
ctx.Credentials = new SharePointOnlineCredentials(username, password);
var web = ctx.Web;
var docLib = web.Lists.GetByTitle("Documents");
var field = docLib.Fields.GetByInternalNameOrTitle("FileLeafRef");
ctx.Load(field);
ctx.ExecuteQuery();

if (field.ClientSideComponentId != clientSideComponentId)
{
  field.ClientSideComponentId = clientSideComponentId;
  field.Update();
  ctx.ExecuteQuery();
}
  • no luck

Note: the customizer is applied if you use debug url to apply it.

@VesaJuvonen VesaJuvonen added area:spfx Category: SharePoint Framework (not extensions related) type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. labels Jan 6, 2018
@GrahamMcMynn
Copy link

@AJIXuMuK - This is by design as the name field is marked as a nocustomize field. If you believe you need the name field to have a field customizer on it please open up a new request in user voice to request this feature.

@AJIXuMuK
Copy link
Collaborator Author

@mcmynn83 it is so weird!

  1. If it is noncustomizable why Column Formatting can be applied and Field Customizer - no?
  2. What is so special in it? Why Title column in list is customizable but this one - not?
  3. Why the field customizer is applied in debug mode?

Why did you actually decide to do it noncustomizable?

@JLRishe
Copy link
Contributor

JLRishe commented Jul 31, 2018

@AJIXuMuK This looks like it might be a duplicate of my issue #906 and it seems like the situation has changed since. I am able to apply a field customizer to a name column without issue now.

@wobba
Copy link
Contributor

wobba commented Jul 31, 2018

@JLRishe do you have some information on how you managed to get this working?

@JLRishe
Copy link
Contributor

JLRishe commented Jul 31, 2018

@wobba I've replied on issue #906 since your original question is there.

@wobba
Copy link
Contributor

wobba commented Aug 1, 2018

It works for Modifed and DocIcon fields, but not for FileLeafRef.

FileLeafRef works fine in debug mode though.

@msft-github-bot
Copy link
Collaborator

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:spfx Category: SharePoint Framework (not extensions related) type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

6 participants