Specify conditional formula to show or hide columns doesn't work properly in a list form

Joanna Kepa 25 Reputation points
2024-08-21T09:30:13.01+00:00

Hi Everyone,

I have issue with formula inside the field "Edit columns in the form". I have followed the steps from this website https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-conditional-show-hide#specify-conditional-formula-to-show-or-hide-columns and used formula, however it doesn't work. Column "Stage" is a choice list which define the stage of project. If the stage= "Data preparation" I want to show in the New item particular objects. For other stages I need to show different objects to be filled in. While using formula "IF" the object disapears, so it looks like it doesn't recognize the Stage name. (I've checked and there are no spaces/ type etc.)

Could anyone support, why this formula doesn't work as it should, please?

User's image

Microsoft 365 and Office SharePoint For business Windows
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2024-08-23T09:40:35.25+00:00

    Hi @Joanna Kepa,

    You should check the internal name of Stage column. The conditional formulas should be like

    =IF([$Stage] == 'Data template', 'true', 'false')
    
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Maycon Batista 336 Reputation points
    2024-08-21T12:44:07.2466667+00:00

    Hello, try it this way:

    =IF([column name]="choice value", TRUE, FALSE)

    Remove the "$" from your formula, so it would look like this:

    =IF([Stage]="Data template", TRUE, FALSE)

    If there are any misunderstandings, please let me know

    Best regards,

    Maycon Novaes

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.