I'm working witch webform module. I want to pass a new webform cretaed, when i used this function drupal_render(drupal_get_form( 'webform-client-form-9')); it's not work. the same function worked fine when i call a user register drupal_render(drupal_get_form( 'user_register'')).

Can you help me?

Thanks in advance

Comments

sandipmkhairnar’s picture

Try this one.

  $submission = (object) array();
  $enabled = TRUE;
  $preview = FALSE;
  print drupal_get_form('webform_client_form_XXX', $node, $submission, $enabled, $preview);
quicksketch’s picture

Status: Needs work » Closed (fixed)

Yep, Webform forms are separated with underscores in their IDs, not hyphens.

makenson’s picture

Issue summary: View changes

Thanks it's work for me