Drupal 6.x Add additional module - no way to add more

A simple question for all of you regarding Drupal 6.x ...

With the Drupal Add More module, is there a way to customize my web form so that there is no limit on how many of certain fields I can add more?

Please see my image, for example:

enter image description here

For example, I would like to include a user to add as many headings as they would like. Is this doable?

+4
source share
1 answer

Unfortunately, it’s currently not possible to add unlimited “add more” features with web forms. And if this functionality ever becomes a reality, I doubt that it will be provided back to the version of the Drupal 6 module. From the author of web forms, the author ( quicksketch ):

no progress on this. The ability to support multiple values ​​requires a huge amount of re-architecture, including changing the way of creating, analyzing, CSV database structure and user interface (both for administrators and users). I would not expect this feature to be added any time soon.

See this topic for more information: http://drupal.org/node/354381

I would suggest using node and the CCK module plus rules and views to collect this information.

Assumptions:

  • Anonymous users can fill out the current form.
  • You need a way to get the data that was sent
  • Regular users of the site can not view messages.

Very loose directions:

  • Create a content type and add all the fields that your current web form contains. CCK has the ability to store unlimited values ​​out of the box. On the field settings page, in the Global Settings field, select Unlimited for the Number of Values ​​field.
  • Grant anonymous users permission to create content [on your new content] on the role permissions page.
  • Using the Rules module, create a new initiated rule that launches “Content should be viewed” with the condition “Content type [type of new content type]” and the action of redirecting to the main page (or the custom error page that you created). (Note: this is a little amazing performance. There are more efficient ways to restrict access to this type of content, but for the sake of this lesson, it was easiest to explain).
  • Using the Views module, create a new view with the value Style to Table. Add each field to the [your-new-content-type] field in the fields section. In the "Access" section, select "role" and select the role assigned to your user. Add a “pages” screen, give it a Path and save. This is the page you will use to view materials.

Additionally:

  • Use the Rules module to send (or sender) an email when creating a node [your new content type].
+4
source

All Articles