---
title: "metadata.addCustomField(String,String,Boolean) Method  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_M_J_$au_metadata_addCustomField_3_c43e5881.htm
product: "Upload Suite 8"
---

# metadata.addCustomField(String,String,Boolean) Method ActiveX/Java Uploader JavaScript

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Adds a custom field to the collection.

## Syntax
 
```
$au.uploader('uploaderID').metadata().addCustomField(name, value, add);
```
 
### Parameters
 
 - name
     - Type: **String**
 
The custom field name.
 - value
     - Type: **String**
 
The value to add.
 - add
     - Type: **Boolean**
 
The value specifies how to handle a situation when a field with a given name is already added to the POST requst. If `true`, the previously added value will be preserved and a new field with the same name will be added. Otherwise, this value will be overwritten.
