User Profile
Danie365
Brass Contributor
Joined 5 years ago
User Widgets
Recent Discussions
Re: List Gallery View forced height when using advacned mode
Added a screenshot in case it helps with understanding the issue... Again, all I have done is: Create a gallery view of a list Format the view via the card designer (any small change so that JSON formatting is produced) Open the 'Advanced Mode' Save the view (even without amending the JSON created in step 2) Use the list web part to display the view on a page1.1KViews1like1CommentList Gallery View forced height when using advacned mode
Hi, I have noticed today that wherever I have created a custom gallery-based list view and used the list web part to display it on a site page, SharePoint is forcing a height (340px). Changing the Height setting in the JSON formatting code has no effect on reducing the height. I have been testing this, and if I click into 'Advanced mode' to format the view and make no changes to the code, and save, then the view displayed on the site page automatically adopts this (unwanted ) forced height. Has anyone else experienced this or know of a new way to override this forced height? I have confirmed this on multiple tenants.1.7KViews14likes11CommentsRe: JSON format broken?
WorkflowIQ are the "txtContent" and "background-color" missing a set or parenthesisssssssss (no idea how to spell the plural of that!)... I'm just brainstorming now as my lack of code knowledge is going to become apparent... but maybe try this... { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "button", "customRowAction": { "action": "executeFlow", "actionParams": "='{\"id\": \"' + if([$ReviewInProgress]=='','xxxxxxxx',if([$ReviewInProgress]=='No','xxxxxxxxx',' ')) + '\"}'" }, "txtContent": "=if(([$ReviewInProgress]=='Approval'),'Sent for Approval','Send for Approval')", "style": { "background-color": "=if(([$ReviewInProgress]=='Approval'),'Orange','Green')", "color": "white", "border-radius": "20px", "border-style": "solid", "border-color": "white", "border-width": "4px", "visibility": "=if(([$_moderationStatus.displayValue] == ‘Pending’),’visible’,’hidden’)" } }5.2KViews1like5CommentsRe: JSON format broken?
Hey WorkflowIQ, try this... { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "button", "customRowAction": { "action": "executeFlow", "actionParams": "='{\"id\": \"' + if([$ReviewInProgress]=='','xxxxxxxx',if([$ReviewInProgress]=='No','xxxxxxxxx',' ')) + '\"}'" }, "txtContent": "=if([$ReviewInProgress]=='Approval','Sent for Approval','Send for Approval')", "style": { "background-color": "=if([$ReviewInProgress]=='Approval','Orange','Green')", "color": "white", "border-radius": "20px", "border-style": "solid", "border-color": "white", "border-width": "4px", "visibility": "=if(([$_moderationStatus.displayValue] == ‘Pending’),’visible’,’hidden’)" } }5.3KViews1like7CommentsRe: JSON format broken?
Hey WorkflowIQ thanks for pointing me to this thread and thanks ganeshsanap for the reply above, worked perfectly and no way I would have figured it out. It would be helpful if Microsoft planned to have the documentation updated for when the change is pushed out.... Anyway, WorkflowIQ if you just replace [$_moderationStatus] with [$_moderationStatus.displayValue] in your code you should be good to go. That worked for me. Thanks again for the heads up!5.4KViews0likes10Comments
Recent Blog Articles
No content to show