Forms are the primary method for obtaining and acting upon user input in Drupal.

learn more… | top users | synonyms (1)

0
votes
0answers
20 views

Are there any disadvantages in placing form elements in custom containers?

I've got a form layout in which form elements are separated between 2 divs: one with float: left, the other with float: right. I have to keep it that way. Is it fine to place form elements in ...
1
vote
1answer
21 views

determine value differences between form submissions

I have an entity form that user can submit multiple times. What i would like to do is during validation get current values in the database and compare with the once that user just entered. I'm using ...
0
votes
0answers
13 views

How can i embed a calendar view in the user edit form?

How can i embed a user calendar view in the user edit form ? The User should be able to edit, delete and add his calendar entries from within his user form. First i tried Display Suite Forms. But ...
0
votes
1answer
28 views

Is there a callback for the managed_file form element, called on succesful upload?

Is there a Javascript/PHP callback for the managed_file form element that is invoked when the file is successfully uploaded? (I mean when the "Upload" button is clicked, not when the form is ...
1
vote
1answer
22 views

Render content type via Form Block module using module_invoke

I am attempting to use the Form Block module so that I can place one of my content type forms in a block. I seem to be able to get to the block but I'm not sure how to render it. If I do a ...
2
votes
1answer
32 views

How to omit form's validation at AJAX button click?

I have an AJAX button that should update form fields according to data already provided by user: 'ajax_button' => array( '#type' => 'button', '#value' => t("Scan for tags"), ...
0
votes
1answer
31 views

Can you temporary grant a user permission to avoid captchas in drupal 7?

I have a module which alters a webform's form. Depending on the user agent, I want to grant the current user the permission to skip captchas, so that the captcha block wont appear at the end of my ...
0
votes
0answers
7 views

Submitting the node form via Panels blanks out Date field values

I have a form made of select fields from the node edit form, displaying on the node view, via Panels. When I press the submit button, it successfully updates the form, but in so doing, it blanks out ...
6
votes
2answers
59 views

How do you change the location of `form_set_error` output?

Is there a way in Drupal 7 to change the location of the output of form_set_error? At the moment, it calls drupal_set_message which queues all the form's errors to the top of the screen. What I ...
2
votes
1answer
23 views

How can I assign a URL with a fragment (#) as an array value?

In my form: $form_state['redirect'] = 'mypage/' . $nid . '#comment-form'; redirects to: /mypage/1%23comment-form ...so it doesn't jump to the comment form. I tried: $form_state['redirect'] = ...
1
vote
3answers
34 views

How do I render a field on a node twice with two different field formatters?

Is it possible to render a field on a node twice with different field formatters? I have a content type with the a field type "Email". This field needs to give me as output: A link to the default ...
0
votes
0answers
14 views

Trouble with jQuery handler function for #ajax response

I want to handle the #ajax response myself, but I'm having trouble intercepting the response before Drupal gets to it. I stole this approach from #ajax response handler function and though I love the ...
1
vote
1answer
35 views

Using Ajax-Callback with ajax_command_invoke to invoke custom jQuery command

I have a button on a form that when clicked adds an additional subsection to the form via ajax. Now I need to make it so the form automatically scrolls to the start of the newly added content. I ...
1
vote
2answers
36 views

Custom Login form question

In my website have two types people login one is designer another is reader, i want people come to login my website by role. Mean designer go to design login form to login. Reader go to reader login ...
2
votes
1answer
29 views

How to NOT turn element read only when waiting for '#ajax' callback in Drupal 7 forms?

I need a simple '#type' => 'textfield' field. When user types in it, I want to update other section of my form. Just more elaborate version of built-in autocomplete field, really. So I added: ...
0
votes
1answer
19 views

Why is the AJAX replaced drop-down list value not being submitted?

I have an AJAX method for when a value is selected from the source drop-down list the target drop-down gets replaced with new values. The problem is that the new replaced drop-down list selected value ...
0
votes
0answers
36 views

Drupal 7 After adding a node using AJAX return node edit form

I have a node add form in a overlay, that is submitted using AJAX. Is there any way to return node edit form as ajax response once you add the node?. I have tried with drupal_build_form in the ...
0
votes
1answer
20 views

How do I display a summary page after finishing a multistep form?

I have a multi step form in Drupal 6, and I want to show a summary page based on entered information in the steps after finishing the steps and user click finish button. I am using the ctools wizard ...
1
vote
1answer
43 views

Multipage registration form with Ctools

I'm trying to follow the tutorial on multipage user registrations at http://www.grasmash.com/article/building-multistep-registration-form-drupal-7-using-ctools, but I'm doing something wrong. As it's ...
0
votes
1answer
17 views

Trigger 'Add another term' using javascript

Is there any way to simulate the click event of 'Add another term' using javascript? I tried like this jQuery('#edit-field-attribute-und-add-more').trigger('click'); but no effect
0
votes
1answer
25 views

How to add css to a form according to the user's role?

I know how to add css to individual form types using: function theme_form_alter(&$form, &$form_state, $form_id) { switch ($form_id) { case 'formtype_form': global $theme; ...
0
votes
0answers
29 views

Use Privatemsg admin form in theme (Missing functions!)

I've exposed the privatemsg_list_view() form in my site theme with a bit of work and it's displaying well. However, updating message statuses or trying to delete bulk messages results in a sad error: ...
1
vote
0answers
54 views

Add fields dynamically using javascript or triggerring add field dynamically

I have a content type called article. I have added a field called attribute which can have unlimited values. At present there is an 'Add another term' button present in the add/edit node page to add ...
0
votes
0answers
9 views

Define a list of rss feeds for access to by code that runs on cron

I have some code that runs on cron queue that builds a fieldable panels pane based on an rss feed. I want to allow the admin user to add new rss feeds so that in the cron code I can loop though the ...
0
votes
1answer
32 views

How do I create a customized form using the Form Builder module? [closed]

Please help me out in creating a customized form with some set of questions and standard controls (e.g. textfield, label, grid/table). I have the Form Builder module which gives me a content type ...
0
votes
0answers
9 views

Apparent Bug in a form generation

After creating an invite type with the invite module, a block is generated where a user can enter his email address however when inspecting the form, here is the output of the text form hence the ...
1
vote
0answers
17 views

Dynamic Content Displayed in a Block

Site: Drupal 7 with a responsive theme. I need to display some dynamic content in a block based on the results of a form. For discussion pursoses. Field 1 is a drop down of states [NJ, PA, NY] ...
0
votes
0answers
12 views

Calling ajax after keypress

I would like to set up a search suggestion feature on a form. The search I'm doing is not related to Drupal's built in search feature. I've looked at the ajax functionality of the form api, but ...
0
votes
0answers
41 views

Forms doesn't work (POST crashes) [closed]

Edit (fixed): There where some lines in the .htaccess missing. After copying them from the orginal Drupal .htaccess file into my one the problem was solved! For some reasons none form on my Drupal ...
0
votes
0answers
24 views

How to display and validate all elements of the user registration form on the front page

I'm working with D6, using several contrib modules and my own theme. The theme has two separate files to differentiate between the front page and any other page: page-front.tpl.php and page.tpl.php, ...
0
votes
0answers
34 views

How to track mailchimp signup form location

Mailchimp has an article that explains how to track signup form locations by adding hidden fields to the mailchimp form. All well and good, but if you put the form in a Drupal block, the location ...
0
votes
1answer
29 views

Creating a content type that merges fields with its assigned area within the body

I have a requirement to build a content type that has a number of fields and also the body section which is where the html goes. When new content is added using this new content type the user would ...
1
vote
2answers
63 views

Generate a fancy PDF certificate from form?

Anyone have ideas on how to generate a fancy PDF certificate in drupal based on user-supplied form input? Here's an example of what I want to do here: http://www.infiniteskills.com/cert/01596 This ...
1
vote
1answer
20 views

Validation error on term-reference field when ajax'd option is submitted?

I get the error "Illegal choice" when I submit a form with a multi-select option that was freshly created via ajax. Workflow is like this: User loads node edit form User needs to select a ...
0
votes
1answer
29 views

Node Create/Edit Form - Multistep with dynamic fields

Our site has different type of articles. Based on the type selected, the fields displayed to the user varies. The ask is to create a multi-step form and include type field on step 1. Based on the ...
0
votes
1answer
32 views

How do I pass a value from the url to a custom field in the registration form?

I know variations of this question have been asked but I haven't found any with this specific set of characteristics. Also, the only programming language I know is python. I don't know PHP at all. I ...
0
votes
0answers
12 views

Term Reference Update Event

I Have implemented a term reference field in my custom content type. The widget i am using is hierarchical select. Now when a content type is being created a hierarchical select box is shown, if a ...
0
votes
0answers
16 views

An invalid form control with name is not focusable. error when saving content

I've added a hidden field to the User Profile page, which I set via script. When saving the form, I get the error, An invalid form control with name='field_map_y[und][0][value]' is not focusable. ...
1
vote
1answer
38 views

Submit handler: Prevent other handlers from running in certain circumstances only

I'm creating a custom module which adds a submit handler to a form. The idea is that it checks whether a hidden "honeytrap" field has been filled in. If the field has been filled in, a success ...
0
votes
1answer
46 views

When in admin overlay, submitting form over 400 times

I have built a very simple module which just implements a block with a custom form. When submitted, the content is emailed to me. I show this block on the dashboard, and without the admin overlay it ...
0
votes
2answers
33 views

How do I test that a text field in $form_state has been populated by the user?

At the moment I am using the following code. if (!empty($form_state['values']['my-field']) { // ... } If the user has entered 0 (a valid input in my case) my test will return FALSE. My guess is ...
-1
votes
0answers
19 views

The current user instead of a field in a form

I have a content type "Research assignment" which has several fields including the field "field_user". I consider editing an object of the type "Research assignment" by any authenticated user. I ...
0
votes
0answers
19 views

webform personalized survey

Can anyone recommend me, which module to use for a personalized survey? I was looking into webform and entity_forms. My mission is to send user a link to his survey, in this link there is a id or ...
0
votes
1answer
40 views

Building an advanced multicriteria search

I'm kinda new to Drupal and I would like some advises. I have a Drupal website, with a few nodes (1000 - 5000) of a particular content type, let's say a "House". This "House" content type has a few ...
1
vote
2answers
19 views

How to exclude forms from processing by Hide Submit module?

According to module description this is possible. However I didn't find how to do it and I did not able to exclude form by any way, e.g: http://drupalcode.org/project/hide_submit.git/commit/8aab1ab
1
vote
1answer
85 views

Button with Drupal Behavior jQuery Conflicting with AJAX 'Add More' Button on Unlimited Cardinality Field

I have a form with an unlimited cardinality field that creates an 'Add more' button to add more fields. I also have a separate pair of fields. One of these fields has a value prepopulated on starting ...
0
votes
0answers
13 views

Dynamic Upcoming Event Selection on Webform Using Views and Viewfield

What I have is an Events Calendar and an Events Content Type. On the back-end events are added then I am using the Webforms Module to create a Register to Attend page. What I can not seem to figure ...
0
votes
0answers
22 views

Captcha doesn't validate

I'm displaying a custom form in a block. I'm adding a captcha to my custom form like so: function requestform(){ $form['firstName'] = array( '#type' => 'textfield', '#title' => '', ...
2
votes
1answer
21 views

How do I format a date value for a 3-column date drop-down widget?

I would like to pass a date in the format 2013-04-23 00:00:00 as a #default_value into a form builder function: $form['date'] = array( '#title' => t('Date'), '#type' => 'date', ...
0
votes
1answer
25 views

how to send muliple emails in drupal in same time

in my site when user submit a dination i want to send email to donor,charity and delivery service at same time(three different emails) in code and i want to kown how can i achieve that,below is the my ...

1 2 3 4 5 22