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 Anuj,
To achieve this you can modify the Display Form/Edit Form of document library and then add custom js either in CEWP or in script editor. You can also use JsLink property of web part and reference your separate JS file.
In JS file you can attach an event to any field or column of library and add logic to hide/show fields based on values of any other field.
Please let  me know if you need more information regarding this.