User Profile
SP_Rambler
Copper Contributor
Joined 22 days ago
User Widgets
Recent Discussions
Re: How to stop SharePoint list custom column formatting affecting form display?
Thanks Nicholas, you will see from the original post that I have included the "text-transform": "captialize" styling. What I am looking for is a way to avoid this styling from affecting the edit form. Please see the original post for more detail.1View0likes0CommentsRe: How to stop SharePoint list custom column formatting affecting form display?
Unfortunately that's not done it - this looks to be adding colours to choices pills, I'm looking to manipulate the text to show proper case but without affecting the update form view. Is there a way to alter your code to achieve the desired result?6Views0likes2CommentsHow to stop SharePoint list custom column formatting affecting form display?
Hello, I am trying to apply custom formatting to a multi-select 'Choices' column in a SharePoint list. The custom formatting applies consistent capitalisation to choices, and joins them with a delimiter (required as just applying the style removes spaces between choice items). The custom formatting JSON is as below: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=join(@currentField,', ')", "style": { "text-transform": "capitalize" } } However, when I apply this style to the column through the JSON editor it affects the display of the corresponding field in the form, adding line breaks where they are not wanted, as below. I have tried adding "word-wrap": "nowrap" in the style element of the column format, which works to stop the new lines being added where they are not wanted but prevents logical new lines being added to show all selected elements. I've also tried variations of the "width" property in the style element to try and force the form to use all available space, but to no avail. Interestingly, this only affects 'edit' and 'view' forms (where you are interacting with an existing item) and is not affecting the 'new' form when creating new items. I have custom JSON formatting in the 'Head' section of the form itself, but nothing in the 'Body' or 'Footer' sections. I've tried removing the customisation in the 'Head' but this doesn't resolve the issue. If anyone has any solutions they can offer they would be very much appreciated.36Views0likes4Comments
Groups
Recent Blog Articles
No content to show