cancel
Showing results for 
Search instead for 
Did you mean: 

How to make dynamic metadata property based on value

craig_michael_n
Champ on-the-rise
Champ on-the-rise
I am working on a custom content model that has a property of document status. The allowed values are Pending, approved, paid, exported.

When a document is uploaded the document is automatically marked as pending and the user can mark it as approved.

There is a script that runs nightly that will export the metadata to a third party system and mark it as Exported.

My question is how can I make it so that a user can only mark the document as pending or approved But they can not change it after it has been marked as exported or paid.

Any answers will be much appreciated.
1 REPLY 1

aaditvmajmudar
Confirmed Champ
Confirmed Champ
You can create custom form control if you are using custom forms for editing metadata of document with your custom content type.

For that, you need to create one custom control "custom-selectone.ftl" which will be same as "selectone.ftl(/site-webscripts/org/alfresco/components/form/controls)" and you can put your custom control under shared/web-extension.

Now in you custom control you can change the display dropdown logic.

Hope this helps you.

Thanks,