How to add catchpa to entityform form IDs for my entity forms is not listed in the catchpa general settings.
Can anyone explain how I add the catchpa?
Hope this will help  you,

In Drupal 7 if you are using Captcha module, you can achieve it by the following steps


Let say you want to add Captcha to Article node form


Get the node form for which you want to add the Captcha, you an achieve it by using


    //Implements hook_form_alter() for node_form().
    function hook_form_alter(&$form, &$form_state, $form_id) {
        //use drupal_set_message to print the form ID
        drupal_set_message("&#60;pre&#62;" . print_r($form_id,1) . "&#60;/pre&#62;");
    }

After printing the node article form


Get form id alternative (For developers) : Go on the page where your form is displayed.
Next, use developer tools of your browser to show DOM structure.
The form_id is displayed like the orange box on screenshot (Chrome example):

After enabling the Captcha module go to admin/config/people/captcha and add the node article form id and save the configuration.


Go to node article form and you can see the captcha(for non admin)




Note:


Configure the captcha setting as per your requirement.