Documentation

sale.property.getFieldsByType

sale.property.getFieldsByType()

The method returns order property fields and settings for specific property type.

Returned fields:

Field Description
idProperty ID.
personTypeIdPayer type ID to which property is binded.
nameProperty name.
typeType.
requiredFlag sets parameter as required.
defaultValueDefault value.
sortSorting.
userPropsWhether included into the profile.
isLocationWhether it is a location.
propsGroupIdGroup ID.
descriptionDescription.
isemailWhether it is mail.
isProfileNameWhether it is user profile name.
isPayerWhether it is used as payer name.
isLocation4TaxWhether it is used as location for taxes.
isFilteredWhether it is available in the order filter.
codeSystem code.
isZipWhether it is used as zip code.
isPhoneWhether it is a phone number.
isAddressWhether it is an address.
activeActive status flag.
utilService flag.
inputFieldLocationinput field location.
multipleMultiple flag.
settingsSettings.

Parameters

No parameters

Examples

BX24.callMethod(
    'sale.property.getFieldsByType', 
    {}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2024
Up