Forum Discussion
MC211640: Conditionally show or hide columns in a SharePoint list or library form
- Jun 01, 2020
lsittler As far I have tested this function only works in the display form not in Edit or New Form. Even they don't allow to save the formula as real time evaluation of fields are not happening.
See the below screen shots: 1. New Form:
2. In Display form It works:
3.Finally Display Form formula:
But you can use power-apps that will give you this feature. If I could help to find the solution, please like or mark the answer as solution.
Thanks
Vik
Thanks
Vik
Vikram_Samal : Its working for me on Edit and Display form as per the steps mentioned by me in earlier screenshots.
As per the microsoft standard step mentioned in the link also given by the lsittler ----> https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-conditional-show-hide
Note: Check the second step, it says Open an item to view the item details in the display form.
So in order to imbibe the formula you have to follow as per given standard steps.
To show or hide a column in a list or library form:
Go to the list or library for which you want to show or hide columns in the form.
If you are in a list:
- Open an item to view the item details in the display form.
If you are in a document library:
- Select a file.
- In the Information Pane:
- Locate the Properties section.
- Click Edit all.
At the top of the form, select Edit Form > Edit columns.
In the Edit columns pane, check (to show) or uncheck (to hide) the box for the column or columns as needed.
Note: PowerApps is the best solution to implement this functionality, this way you can show/hide fields on click/change of dropdown values.