Form submission is the operation for which the data user input are going to be processed.

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

How to set query result on a text field?

I want to show a result of a select query (with row count) in a text field after submiting. Here is my code : $form['my_textfield'] = array( '#type' => 'textfield', '#title' => ...
0
votes
2answers
23 views

Where to insert .js code using the webform module for google tracking a submit button

I am trying to insert a google tracker to a form submit button/form using the webform module (drupal 7). Here is my code: Drupal.behaviors.basicWorks = function(context) { // Track submission ...
2
votes
0answers
24 views

Programmatically Setting Content Ranking Factors For Drupal Search

I've added a dropdown to Drupal search page interface. I would like for users to be able to select this control to sort results according to Date or Keyword Relevance. I'm able to get the dropdown ...
2
votes
2answers
30 views

Does Drupal distinguish types of error messages?

In D7, under Configuration > Development > Logging and errors you can set "Error messages to display" to "none". However, I would think users should still be able to see form error messages, ...
0
votes
1answer
42 views

Drupal 7 Query database and display results same page in custom module template

I want to see the results on the same scree after submit. But my results php error "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in ...
0
votes
1answer
41 views

How to get row weights from a form before saving? [closed]

I have form with an image upload field which saves multiple images. User can reorder and crop images in that form. Reorder using default drag option. My requirement is to create a PDF of images in ...
0
votes
3answers
50 views

How to send hidden field value to db on webform submit

I am using Drupal 7 webform api, have a created a field in my _form_alter hook in a custom module, but while on page load the hidden field contains the correct value, when I submit the form it does ...
0
votes
1answer
27 views

How to get values after form submit

I created on custom module to generate a form with this code function report_page_form_form($form, &$form_state) { $meberArr = array(); $form['field_member_org']=array( ...
1
vote
5answers
114 views

How to get the $form_state in hook form submit?

I need to create a node when a comment is submitted in nodes. There are two content types image and memory and I need to get node ID of the node that a user is inserting comment in it. Here is my ...
0
votes
0answers
33 views

'#ajax' is not working with drupal_render(drupal_get_form())

I've a html form in a page. And also I've added another form at end of the form. My code should look like something below: $customer_details = array('name' => 'Guru'); $form['#suffix'] = '<div ...
0
votes
1answer
12 views

Is there a setting (or a module) to include the webform conditional displayed markup in the webform submissions?

I can write a hook for this in a custom module certainly, making use of the Webform API. But I thought I'd ask first to see if there is an out-of-the-box way to ensure that a webform markup component ...
0
votes
1answer
36 views

Sending data via post and redirecting user

So I made a module that needs to gather some data and redirect user and that data to a payment site. function payment_upload_form($form, &$form_state){ $form = array(); $form['#action'] = ...
0
votes
1answer
31 views

how to get the submitted value of tableselect in drupal 7

function test($form, &$form_state){ $form = array(); $header = array(.............); $values = array(.............); $form['table'] = array( '#type' => 'tableselect', ...
0
votes
2answers
24 views

How to redirect form to a url having wild card character in drupal?

How to redirect form to a url having wild card character in drupal? For example, can I do like this below shown? $form_state['redirect'] = 'admin/component/%/edit' or any other alternative approach ...
0
votes
0answers
32 views

D7 db_update — how do I get the unique ID (primary key)

I am working on an edit/update function in my module. I am able to populate the form with the correct data based on the unique ID but am unable to pass this to my submit_handler function. Submit in ...
1
vote
1answer
27 views

Need help with my form with duplicate file and resetting form

Need help with my form for uploading an image on my theme's settings. I have a form that uploads an image that can be used as a background image. I have two problems with my form: first is how to ...
0
votes
0answers
30 views

Tableselect with only checkboxes in every line

As said in the title, I want to create a table made of a list of "persons" (the left column) and few columns in order to only check properties of every person, that why I need only checkboxes on this ...
0
votes
1answer
11 views

module_load_include fails on WebTestCase post

I am writing test cases for my website using SimpleTest module. One of my test cases uses the following sequence $this->drupalGet( "myurl" array('query' => $params)); ...
0
votes
1answer
27 views

Delete/Edit selected record from rendered tabular form results

I have made a form and retrive form submissions into a tabular format. I put 2 links ahead every single submission - Edit/Delete Now, when I click "edit", its corresponding edit form should open. ...
0
votes
1answer
30 views

login user after form submit

I have a form that one of fields is mail field, when form submit I check that email if not belongs to any user I create a user and assign that node to the created user, Then I want logged in that ...
0
votes
0answers
58 views

Submit form and display confirmation page in CTools modal

I've been all around this issue, but haven't found the right magic to make this work. I have a Drupal 7 custom form that collects information from a user, which gets validated before submitting, that ...
1
vote
0answers
33 views

Drupal store into own database

Using Drupal 7 and trying to store registration information into my own database. I have a hook_form_submit() function that should be submitting the information into my own database table. what it ...
0
votes
0answers
31 views

How to run validation on hitting the submit button for exposed views filters. Currently it runs on first page load

I am trying to add validation errors to exposed views filters (drop down lists) in block region. However, my validation error runs on the first page load before I hit apply button. Also the ...
0
votes
2answers
113 views

Submit button to filter data from table select by selecting on list select

i'm new on drupal, i've create a module that shows a form (with tableselect, list select and a submit button) the tableselect shows data from the database, but i want to filter what i want to see on ...
0
votes
1answer
9 views

Problem Sending data send to a block

after form submit in a page its return some value,I want to prnt this value in a block .how can I do this? and I want the form and the block are in the same page.
1
vote
3answers
34 views

Authenticated users must be able to flag webform submissions

Authenticated users must be able to flag webform submissions. How can I make this work?
1
vote
1answer
37 views

How to set value to auto-complete field after form submission?

I have a dependent auto-complete form field in my custom module. After submission the form the auto-complete field shows above the result output. Now I want that submitted value should become default ...
0
votes
3answers
217 views

#ajax form_set_error

I'm using the below code to query a webform field's value against database, and if the value exists, I want to use form_set_error, however I can't, since it requires rewriting the page. I have found ...
0
votes
1answer
47 views

“the website encountered an unexpected error.Please try again later” after db_update

Drupal responses "the website encountered an unexpected error.Please try again later" after running db_update statement in my custom module. I always do this without any error. Any suggestion pls! ...
0
votes
0answers
24 views

URL variable getting lost when using upload button on a managed file

I have a D7 form that I made using the form API. The URL to the form contains a URL variable like so www.mysite.com/myform?id=123456. (I know it would be better to do www.mysite.com/myform/123456, but ...
2
votes
1answer
120 views

“Add another item” button before field

I'm trying to place "Add new item" button before the unlimited values field. Also two buttons un top and below field will work. In custom module added new button but it brakes AJAX call for both ...
0
votes
2answers
72 views

how detect form is submitted? [closed]

I use Drupal 7 and the Webform module. How can I know if a form is submitted or not? I need this to show either error messages or success message after form submission in form page. I prefer not to ...
0
votes
2answers
60 views

Drupal Form in Block will NOT call Submit or Validate handlers

Let me start by saying I have seen quite a few similar threads, and I have tried everything I've found so far, with none of them working. My brother wanted a contact form to be in the footer of his ...
2
votes
2answers
51 views

How to unpublish content when form submitted and notify a user by eMail?

In my Drupal 7 site I have content type Job. Recruiters post information about open positions. Registered users can apply for any position by flagging node using the Flag module. I have built custom ...
0
votes
1answer
33 views

Submit not executed

Why is my submit function never been executed? /** * Implements hook_menu(). */ function simpleexample_menu() { $items['simple-example-page'] = array( 'title' => 'Simple Multi-Step Form', ...
1
vote
1answer
32 views

7 - Download file and generate page

I've got a form that gathers some data. The data is then modified and should be passed to the user as a file. To manage this I did the following: header('Cache-Control: must-revalidate, post-check=0, ...
0
votes
0answers
24 views

User profile edit form cannot be submitted

I'm changing user profile edit page to reorder input fields and put them in div tags. I have added following code into template.php. function MYTHEME_theme() { $items['user_profile_form'] = array( ...
0
votes
0answers
33 views

How can i insert a form value to mssql database from drupal 7?

I have a new issue to store some values from a drupal contact form to the mssql based application. I have an inquiry management system which holds the inquiry from the website.The system was ...
0
votes
0answers
34 views

How to create users for site from a web-form submission? [duplicate]

I have added a webform into site to register a user, now i want users who added their information into form, to become a user of site .
0
votes
0answers
22 views

The array $form_state undefined with ajax

Why when I submit form generated with ajax, the array $form_state is undefined? this is a part of module: 1) $form['#tree'] = TRUE; $form['addTel'] = array( '#type' => 'submit', ...
1
vote
0answers
19 views

How do I load the $form_state for a form loaded with drupal_get_form?

Or is drupal_get_form not the right way to go about loading node forms where I want to also get the $form_state? The reason I am asking is I would like to be able to place multiple node forms on the ...
0
votes
1answer
48 views

After submission of a webform block how to replace that webform block with thank you message in the same page?

I have created a webform block and assigned to a page in the right sidebar. After successful submission of that block, I want the thank you message with the values submitted in the webform to ...
0
votes
0answers
18 views

How to add KnockoutJS to Drupal forms?

Does anyone have experience on adding front-end framework to Drupal? From my experience I see few problems FAPI and field/input attributes for KoJS dynamically added inputs: fapi doesn't allow ...
0
votes
0answers
26 views

Post to Pardot hook_form_alter On user_register Form Not Working

Alright, so this server I'm working on is running Drupal 6 and I need to send form data to Pardot upon user registration. I followed the answer on This Question, while adjusting http_build_query to ...
0
votes
1answer
35 views

How to implement a nomination process for nodes?

I want to implement a nomination process. Users should be able to Nominate existing Nodes of type 'course' Nominate new content that should later be of type 'course' Alle Nominations should be ...
0
votes
0answers
31 views

Problem with function from theme-settings.php in sub-theme

I want to create the sub-theme of my custom theme but I have the problem with the function from theme-settings.php. I have a few managed_file fields in my theme settings and my submit function for ...
0
votes
0answers
32 views

function added to ['#submit'] of user_login form is not invoked

So, i have this project which has ton of custom code for authentication, cookies, 3rd party authentication & login tracking. Now, i have to enable TFA. Everything works after enabling TFA module ...
1
vote
2answers
34 views

Form input returns “1” instead of real value

On this page I have an select list with values from a file directory. This works. Only after submitting it doesn't get the value of it. It makes it "1". Normally with a "normal" select list this ...
0
votes
1answer
100 views

How do I change submit URL for exposed search filter?

I've created view using Search API Views with two different displays. First Page display (by_terms) and with the following options: Page settings: Path:/taxonomy/term/% Contextual filters: ...
1
vote
1answer
19 views

How can we use form directly without using drupal form handler

I want to post a html form into block as content and wanted to submit the form to a page. where I will need to get the form values using $_POST and do some process on it. How can i do that without ...