am having a requirement to create a power shell script which set the column order from mandatory fiels to optional fields in the document library, when i try to upload a document.
if i elaborate, i am uploading a doc to the doc lib. which has the below columns:
columnA - [choice field - mandatory ]
columnB - [lookup field - mandatory ]
columnC - [single line of text - optional ]
columnD - [choice field - optional ]
columnE - [choice field - mandatory ]
now when the end user uploads a document in my doc lib, i would like to see the mandatory columns takes up the top order and then optional fields.
so, is there any script, through which i can set the mandatory columns which will be coming in top and the optional fields as next order