Hi,
I just wants to show/hide column on basis of another column value while uploading a file in sharepoint online.
For example:-
I have a document library that have some columns like
FileType,CompanyName, Col1,col2,col3,col4…….
When I upload a file it ask me to fill these metadata.
But I want to show only some column according to FileType.
For Example:
Suppose The FileType list contains Type1,type2.type3.
when I choose Type1 then it should ask me to fill only CompanyName,Col1,Col2.
and when I choose Type2 then it should ask me to fill only Col1,Col3.
and when I choose Type3 then It should ask me to fill only CompanyName,Col2,Col4.
Hi, there is no need to use JavaScript because what you are trying to achieve is fully supported out of the box: Create a “Content Type” at site level, add all your common fields, then create as many child “Content Type” of the previous one, that you have document type, add special fields accordingly. Once done just add child “Content Types” to your library and voila.
Samira, I am very surprise that, as an SharePoint expert, you could provide such bad advice, “Content Type ” are the very fundamental piece of SharePoint and you have to master them, development, including JavaScrip or SP Designer are the last option, when you have exhausted all out of the box ways.
