string check_rights = "Y",
mixed form_id = false
Copy copies a question
or a field of a web form. Returns the ID
the new question or field
on success, or false otherwise. Parameters
field_id The ID of the
which is to be copied.
Flag specifying the current user
should be checked. One of the following values is possible:
A user must have the following Y - permissions should be checked;
N - no checks need to be performed.
to copy a question or a field:
Optional. "Y" by default which means the permissions should be checked.  view web form parameters for the source web form;
 full access for the destination web form.
form_id The ID of the destination web form to which a
or a field should be copied.
Optional. False by default which means that the current web form is used. See Also
$FIELD_ID = 140; // The question ID
// copy the question
if ($NEW_FIELD_ID= CFormField::Copy($FIELD_ID))
echo "The question #140 has been successfully copied to the new question #".$NEW_FIELD_ID;
// display the error description