admUpdateCustomField

admUpdateCustomField

Syntax

admUpdateCustomField(cfId, fieldName, description[, fieldSearcher])

Package

adm

Alias

 

Pkg Usage

updateCustomField(cfId, fieldName, description[, fieldSearcher])

Description

Updates a custom field, the searcher can also be updated.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

cfId

String

Yes

The id of the custom field.

fieldName

String

Yes

Custom field name.

description

String

Yes

Custom field description (can be blank).

fieldSearcher

String

No

Custom field searcher (either key or name). If blank, the default custom field searcher for the given type will be considered.

Return Type

boolean

Returns true if the custom field is updated and false otherwise.

Example

Example

Changing the name of the customfield_10000 and make it use a free text searcher

admUpdateCustomField("customfield_10000", "New Custom Field Name", "test description", "Free Text Searcher");

If the provided custom field searcher key or name is wrong, it will be ignored and the custom field will be updated with no searcher configured.

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.