Specify conditional formula to show or hide fields in a list form based on choice

Steve Prentice 0 Reputation points
2025-01-09T08:51:49.85+00:00

Hi,

I have a list that includes column names that have spaces in them, e.g. "Third party". I want to be able to conditionally show fields in a list form based on choice. I have followed the guidance in this link https://zcusa.951200.xyz/en-us/sharepoint/dev/declarative-customization/list-form-conditional-show-hide#specify-conditional-formula-to-show-or-hide-columns, however conditional formula appears to have an issue with the space between the column name "Third" and Party".

I want to be able to overcome this issue without removing the space in the column name, please can someone help?

Success : =if([$ThirdParty] == 'Yes', 'true', 'false')

Fail : =if([$Third party] == 'Yes', 'true', 'false') **error advising "**Enter a valid condition"

Thanks in advance!!

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,192 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 48,906 Reputation points Microsoft Vendor
    2025-01-10T02:46:17.25+00:00

    In the conditional formula, you should use internal name of the column.

    Go to List Settings -> Columns section -> Click the "Third party" column -> Find the internal name of the column.

    1 So, you must use [$ThirdParty] in the conditional formula.


    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.


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.