forms

How to submit some hidden values along with a drupal webform? Our example. We have job node (nid 1) and we want to go to a webform to apply for the job. So we build a link on our node pointing to the webform node (nid 2).
In the node template type quickly a url: node , nid webform, nid job node

<?php
print l('Apply for this job''node/2/1');
?>

This module has the potential to fill the form theming gap. For now it is still in alpha but it has potential.
It uses jquery to arrange your form elements. Takes into account fieldset (but not the field in the fieldsets).
It does not integrate with the multistep module.

http://drupal.org/project/arrange_fields

This means drupal cannot find your callback to your form.
Possible causes:

1) Drupal cannot find your function because the php file containing the function is not loaded.

I had this problem when I tried to call the 'simplenews_subscription_list_add' form with.

<?php
drupal_get_form
('simplenews_subscription_list_add');
?>

It failed giving this error:
 

Given a page with multiple instances of the same form (which use the same form id), your form submit() function may not receive the anticipated set of form values for the form the user has submitted. The values you get may not be from the form attached to the submit button the user clicked, but values from a different form with different values which is using the same form id.

Syndicate content