Conditional Formatting

Occasional Contributor

So I am building a dynamic Teams List form and I am doing conditional formatting I want certain fields to appear based on conditions, and that works however when I go into the list complete the pending actions and I choose the item I want the details pane returns the following error:

JSON Error.PNG

As you can see the list has the information, so I am not sure what I need to do. If I remove the conditional formatting from the 2 columns, the app works as expected, so I know it has to be something in the formatting that I am doing wrong. In addition when I select a record and hit edit, it

 

 

 

Details Panel.PNGEdit.PNG

11 Replies

@Chrisfoster1330 

 

It seems like there is an issue with the JSON file. Could you please validate your JSON. Also it could be great if you could share your JSON file with dummy data and conditions used so that it could be helpful for us to look into the issue. Please make sure you have removed any PII.

So I am using simple formulas in column formatting and not really using JSON the formula for "Agent" is =if([$Category] == 'Agent', 'true', 'false') and JSON validator says the =if is wrong and it states it should be without the = but it is not a valid formula.

@Chrisfoster1330 

 

From the formula it seems like you are using Sharepoint list. Could you please let us know if it is the correct assumption? Also Please take a look at the formulae

 

If you could guide us on the resource where you are using the formula, it will be great for us to try in the right direction.  

@Meghana-MSFT Yes you are correct it is in a SharePoint List, And I am using it in a column called "Agent" and a column called "Team Meeting" and it is pointed at a column called "Category". So if the Category is "Agent" then only that field will be visible and likewise with the one for "Team". This function is working, however I am getting an error, when I am trying to view the record in the "Details Pane" and also none of the record is visible when you click on edit.  

 

My formulas appear to be correct and like I said previously when I remove the formulas the form works as expected. Here are the formulas again: =if([$Category] == 'Agent', 'true', 'false') And =if([$Category] == 'Team', 'true', 'false')

JSON Error.PNGColumn Agent.PNGColumn Team.PNG

@Chrisfoster1330 

 

We tried to repro this at our end and we did not face any issue with view the record in the "Details Pane" and edit options. Could you please try the same thing in Sharepoint list and do the same operations? And see if you are still facing the issue?

I have deleted and rebuilt this app 4 times all with the same result. I have built other apps with the same conditional formatting and it works just fine with no issues, but try as I might I cannot get this one to work period. I have no idea where to go next
Could you please try the same thing in Sharepoint list instead of Teams lists and do the same operations? And see if you are still facing the issue?
So you are asking me to create it in SP and not Teams? Can I copy it over or do I have to build it in SP?

@Chrisfoster1330 

 

There is an option to open the list in Sharepoint. Attaching a screenshot for your reference. conditionalformating.PNG

I have done this and I get the same issues. What is my next step, I really have to get this thing fixed. As I stated I have tried everything I know to get this to respond to no avail.

@Chrisfoster1330 ,

 

This does not seem like a teams issue. Could you please raise this on Sharepoint Lists platform.