form

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

adding a form to any page of the site that will submit to existing exposed view block

I have a view, displayed as a block, with exposed filters, assigned to one page node on my site.
This is a simple search form with a Taxonomy drop down, keyword search for name, and a few other simple filters.

My problem is that I want to include an additional form on other pages of the site (a sidebar block for example) that will submit to this view.

Is this possible?

I'm testing now, but have yet to produce results.

I copied the HTML of the form and used that as my starting point.

Of course, this view uses AJAX as it has exposed filters and is output as a block.

Read more
mlncn's picture

AJAX Form Messages, an API to provide an enhanced user interface for forms– catching errors before the submit button is hit

This module will provide an API and a UI for immediate inline validation or other checking and responding of form elements. (Contrast this with AJAX module, which validates the entire form via AJAX when the submit or preview button is pressed.)

The ideal will be to automate using (or make it very simple to use) existing form element validation functions as the back-end of inline validators.

The initial motivation was to extend (and make an honest module out of) Unique Fields AJAX checking, but the number of nice-to-haves and ought-to-bes make point the way to a new API for setting message conditions and messages. This will be developed API-first.

Notes from my due diligence are here: http://data.agaric.com/raw/ajax-form-messages-proposed-module

Read more
wavecoop's picture

Sagepay FORM

hello all

Does anybody have any experience with integrating Sagepay FORM with Drupal and Ubercart, Not Server or Direct.

Thanks in advance for any help or forwarding.

Felix

Read more
dddbbb's picture

Advice on CCK field validation

Hi folks. Can anyone give me any advice on CCK field validation?

The CCK Validation module apparently seems to do what I need but is only available for Drupal 5 (I'm developing in Drupal 6). All I need to do is check if some user entered text contains a certain string and display a custom error message in place if that condition isn't met.

Sorry if it's a bit of a noob question.

Cheers.

Read more
zap-admin's picture

What's the trick to submit button below captcha on registration form?

Okay, I'm developing a new site and about to hit my wits end on this. Using Drupal Version 6.16 and was using captcha 6.21 but have temporarily gone back to a beta 3 version of 2.0 since someone else had posted this "fixed" the problem. Returned back to 6.21 since my efforts were to no avail.

Read more
srinikasturi's picture

Check null value in form field

Hi,

Just started with this awesome module!

I am trying to create a rule where 'form element fieldname value check' needs to look at the field, and do something only if it is a null value. Entering 'null' in the value text area does not do the job. Leaving it blank is not possible as it is a mandatory field. How do I do this with rules, without hacking the other module that is creating the form?

Thanks
Srini

P.S.

Read more
DrupalCuckoo's picture

hook_form_alter() and content types

hi,

I'm bulding a custom module with the purpose to alter the "edit form" of every content type (i.e. the edit form of the blog content type located at admin/content/node-type/blog).

Creating new form elements to extend the standard form with my custom form elements wasn't a problem at all. When I enable my module at admin/build/modules I can see my custom form elements and everything seems to work. Here's what my ".module" file looks like:

<?php
// $Id$

/**
* Implementation of hook_form_alter().
*/

Read more
noobizness's picture

Using Node Reference in a custom module form

Has anyone got a nodereference form to work correctly in a custom module (in autocomplete mode?) It seems that the autocomplete ajax function expects more data than exists and so constantly returns an empty array [ ] of options.

Any suggestions for using nodereference in a custom module form?

Thanks

Read more
hixster's picture

Checking for domain in email field - custom PHP rule

HI guys,

I'm new to rules an am stuck on an issue. I am using rules_forms to process some input from a form. I'll describe what I am trying to achieve and hopefully someone can help.

1) My client wishes to prevent any user with a free email account from posting through the contact form.
2) I have set up a rule that triggers on form validation and prints and error for the email field.

I tried to achieve the logic with text-compare, but it's not working for some reason , so I am going down the php route.

Essentially I have a regular expressions:

Read more
pronce's picture

Refresh view from block module via ajax (no exposed filter)

Hi there.
I'm working on an module which povides a form in a block to edit the filter settings of a view. I'm not using an exposed filter, because the form is updating itself via AHAH - selecting one or more categories in a multi select form populates another multi select box with items - and I don't know, if this would be possible with 'hook_form_alter()'.

Read more
Subscribe with RSS Syndicate content