cancel
Showing results for 
Search instead for 
Did you mean: 

List of Values Constraint allowed values in custom form

bowmanrogere
Champ in-the-making
Champ in-the-making
I'm hoping someone can help me out with this, as I have spent several hours searching the wiki, forums, existing webscripts, etc, and haven't come up with an answer.

I am developing a custom button for the document library toolbar to upload a particular document type. The idea is that clicking this button will either pop up a dialog with a custom form or take the user to a custom page with a custom form. The requirement is that the metadata for this document is filled out when the user uploads it. Also, if there are particular values set, there is a requirement that other documents be uploaded as well.

One of the properties for the custom document type has a List of Values constraint, which has the allowed values defined in the constraint definition. Is there anyway to access these allowed values via the javascript api? Is there a repository webscript I could hit that would send these values back? How does the share property form access these allowed values.

Any help is appreciated.

Thanks,
-Roger
1 REPLY 1

billerby
Champ on-the-rise
Champ on-the-rise
I think you will have to write a repository webscript in java that accesses the dictionary service. The Share property form is populated by the formprocessor which is written in Java. Look at the class FormUIGet.processFieldConstraintControl

Regards
/Erik