forms

Events happening in the community are now at Drupal community events on www.drupal.org.
vgebhart's picture

Question on available Form tokens in the rules module

I'm attempting to create workflow to consolidate our departments approval process for internal procedures. Want to have user submit request, and have it be routed to managers / directors based on conditions in the form. Seems fine so far, but I'm hung up trying to send an email to users with a link to the form url. I can't seem to find this as a token in the rules module. I copied all available tokens as displayed in the rules page and pasted them into the message but nothing seems to create a link to the node itself.

Read more
d00bz's picture

custom form handling for n00bz

This question is about how to create/manage a compound CCK element, allowing simulataneous creation/editing of the parent node and its children in a single form.

I have a CCK type (Project) that I want to be the parent class for a set of child elements (Benchmarks). the existing CCK "Motif" seems to allow me to create an array type under project that helps me to "Find" existing chlld elements. What I want to be able to do is create a project AND a series of child benchmarks (or at least one!) in one fell swoop.

Read more
Anonymous's picture

drupal_add_js and form caching

I have some jQuery code that acts on the core search form for my site (it hides the default text ('Search...') when you click/focus on the search field and shows it again (on blur) if you leave it blank). This code is in an external .js file. I have added this file to my site (using drupal_add_js) by placing it in my site's implementation of hook_form_FORM_ID_alter.

However, it seems form caching is causing problems with this - when I flush all caches the jQuery works fine, but when I reload or go to a new page, it stops working.

Read more
mkelly's picture

Examples of datetime field form validation w/Rules?

I'm working on a Drupal 6 site that includes the ability to book resources (meeting rooms, projectors, etc). When somebody submits a new reservation/booking, I need to validate the reserved time to make sure it doesn't fall outside of business hours. I was hoping to do this with the Rules module, as I'd like the ability to change the validation criteria via the Drupal web UI.

Read more
mattconnolly's picture

Drupal on IIS stripping action from HTML forms

We've just installed drupal on an IIS machine in our office. It has installed successfully, however we cannot create any content or save settings in the admin menu.

It seems that the "action" attribute in the HTML FORMs are being cleared. For example, when you create a page, the form on index.php?q=node/add/page should post to (ie, the form element's action attribute) "index.php?q=node/add/page". (like it does on all the Mac and Linux servers I've setup with drupal).

What happens is that is just goes to "index.php".

Read more
Nolan's picture

re: forms

Hi,

Does anyone have any experience of using Forms in Drupal. I wish to create a form where people register their details e.g. name, add, tel etc. and then when they press submit an email is fired off to an administrator with the details contained in the email.

thks,
Nolan.

Read more
culfin's picture

Improving drupal forms

Hi everybody,

a few days ago I spotted a very nice idea from the user hunvreus, who worked out a nice method to beautify drupal forms.
He describes this as a basic idea which has to be improved more:

The popup script works fine but need a bit of customization to take textareas, radios and checkboxes into account, the behavior could be improved to take the field focus into account, the style of the popup could be improved as well...

Read more
john keohane's picture

Forms??? How do I add a small form for say registering for a news letter to a page of content?

Hi all. I'm not sure how to go about this. I need to create a small form for entering an email address. but the form needs to be on the homepage. I've created form pages before but this has me stumped as it needs to be part of the content for the homepage. Any ideas...?

Read more
brendoncrawford's picture

Ajax 6.x-1.11 is Out

I know it seems like there has been a major release every other week, but this has only been due to the enormous amount of fixes and refinements being made due to the wonderful feedback of the Drupal community. I like to think that it never hurts to "release early, release often".

The big news for this release is file upload capabailities. This of course opens up a whole new world of possibilities. Due to these new capabilities and a number of other fixes, there have been some API changes and filename renames.

Read more
vordude's picture

Drupal 6 Forms API Screencast

This is a very introductory look at Forms API in Drupal 6.

The focus is on basic and practical application, and should allow the newest Drupal programmer to be able to go create his or her own form, in Drupal 6.

Attached is the code for your perusal--It's the same as what's demonstrated in the video, with a bunch of comments. (I would have attached a tarball, but it was not an acceptable file format)

The 30-minute screencast is hosted at blip.tv.

NOTE: In the video, I fail to use check_plain() when outputting some user-generated content...For the sake of you and your web site, don't forget this step. The attached code example is i believe doing it right

Read more
Subscribe with RSS Syndicate content