# GetCustomFieldData

If a [rename script](../../../file_operations/renaming_files/advanced_rename/rename_scripts) implements the \*\*[OnGetCustomFields](../scripting_events/ongetcustomfields)\*\*event, the method receives a **GetCustomFieldData** object whenever the Rename dialog runs the script.

| Property Name | Return Type                                     | Description                                                                                                                                                                                                                                                                                                                                          |
| ------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fields        | _object:_[**CustomFieldData**](customfielddata) | Returns a [**CustomFieldData**](customfielddata) object, that the script can use to add custom fields to the _Rename_ dialog. Each property added to the object in this method will be create a new field in the dialog, allowing the user to supply additional information to your rename script.                                                   |
| field\_labels | _object:_[**Map**](map)                         | This lets you assign labels to your script's custom fields, that are shown to the user in the _Rename_ dialog. To do this, set this property to a [**Map**](map) created via the [**DOpusFactory**](dopusfactory)**.Map** method, filled with name/label string pairs.                                                                               |
| field\_tips   | _object:_[**Map**](map)                         | This lets you assign "cue banners" to any edit fields created by your script. A cue banner is displayed inside an empty edit field to prompt the user what sort of data the field expects. To use this, set this property to a [**Map**](map) created via the [**DOpusFactory**](dopusfactory)**.Map** method, filled with name/banner string pairs. |
| focus         | _string_                                        | You can use this field to specify which control gets the input focus by default when your fields appear for the first time. Set it to the name of the desired control. You can also specify **!oldname** or **!newname** to assign focus to the standard old and new name fields.                                                                    |
