There is a user field called UF_TASK_EFFICIENCY called Responsiveness.

How to display this signature in the right place, having XML_ID it?

enter image description here

    1 answer 1

    Use the CUserTypeEntity :: GetList method to get information on custom fields. For example, in your case it will turn out like this:

    $fieldName = ""; $rsUserField = CUserTypeEntity::GetList( [], [ 'XML_ID' => 'UF_TASK_EFFICIENCY' ] ); if($arUserField = $rsUserField->Fetch()) { $fieldName = $arUserField['FIELD_NAME']; } 
    • Displays UF_TASK_EFFICIENCY - Sergey
    • It was expected - Efficiency - Sergey
    • 3
      We read for documentation. And about the miracle there is a phrase "Attention! If you do not specify the LANG key in the filter with the value of the required language ('LANG' => 'en'), the fields" Signature in the edit form "," Title in the list ", etc. will participate in the sample. ([EDIT_FORM_LABEL], [LIST_COLUMN_LABEL], [LIST_FILTER_LABEL], [ERROR_MESSAGE], [HELP_MESSAGE]) " - Nikolaj Sarry