getFieldsForEdit
array public static \Bitrix\Crm\Activity\Provider\Base::getFieldsForEdit( array $activity );
Method returns array with fields, available for editing when creating/updating an activity via planner. Static method.
Array as follows:
return array( array( 'LABEL' => 'Meeting subject', 'TYPE' => 'SUBJECT', 'VALUE' => isset($activity['SUBJECT']) ? $activity['SUBJECT'] : '' ), array( 'LABEL' => 'Meeting location', 'TYPE' => 'LOCATION', 'VALUE' => isset($activity['LOCATION']) ? $activity['LOCATION'] : '' ) );
Presently, the following types are supported:
- SUBJECT - standard activity (name) subject field;
- LOCATION - standard field "Location";
- TEXT - standard text input;
- TEXTAREA - text field.
Array can pass HTML key to individually generate HTML code.
Parameters
Parameter | Description | Version |
---|---|---|
$activity | Activity array. |
Example
© «Bitrix24», 2001-2024