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

learn more… | top users | synonyms (1)

0
votes
3answers
21 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
22 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
91 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
1answer
10 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
28 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
2answers
20 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
29 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
20 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
29 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
10 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
23 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
0answers
29 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
31 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
27 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
83 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 ...
1
vote
3answers
29 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?
0
votes
1answer
31 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
202 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
0answers
21 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
114 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
52 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
49 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
26 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
31 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
26 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
22 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
29 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
20 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
18 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
42 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
17 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
25 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
33 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
28 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
81 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 ...
0
votes
1answer
40 views

Redirect to custom error page if node submit fails validation

I've embedded a node/add form on my homepage for submissions but for caching purposes, I need to have any server-side validation occur on a different page instead of itself. I.e. If the form fails ...
1
vote
0answers
15 views

Webform submission vs email submit

I have same webform in three different languages. In First two languages, after submit, page is refreshed, and confirmation message shown: "Your email was sent". But in third language, after ...
0
votes
1answer
231 views

Get values from ajax replaced text field in a form

On a edit page I added a form so the user can select what he wants to edit. With that info I used ajax to show the info which belongs to that item. But when submitting the form it isn't taking the ...
1
vote
0answers
30 views

Modify a node on the submit

I would like to generate a forum for each article posted on the website. Actually what i'm able to do is create the forum before, write the article and match a field with the forum. Now i would like ...
0
votes
1answer
38 views

How can I dynamically disable a single required field from validation in a form?

This is an extension of this question: Need help with AJAX callback function for text field validation in form_alter I have a form with a Username autocomplete field (txn_user). The editors want to ...
0
votes
1answer
34 views

Populate $form_state['values'] with defaults from drupal_get_form()

I'm looking to resave a form's defaults values. In core the test module uses drupalPost() to test the form so I'm thinking this will be custom code.
0
votes
2answers
72 views

Can't insert data to database on form submit

I am trying to insert some datas into database table on form submit like this: function form_example_submit($form, &$form_state) { if ($form_state['values']['select']=='1') $gender = 'male'; ...
0
votes
1answer
104 views

Parallel Execution of Javascript Function and Drupal's Default Event After Submit

I was trying to save something in my database using the following code below: function myid_user_page_form(){ $form = array(); $form['submit'] = array( '#type' => 'submit', ...
0
votes
1answer
50 views

Custom form handler not found in Drupal 8 (call_user_func_array error)

Currently on Drupal 8 beta 7. I'm trying to build a form with separate "submit" and "cancel" buttons. The cancel button has some separate cleanup work to do. I've tried to follow the documentation ...
0
votes
0answers
13 views

Submit function for custom module executes on every page except the user edit page

I wrote a custom module that creates a form and displays it in a block. The form only contains one button that performs an event when you click on it. It works great on every page, but when I put it ...
0
votes
2answers
64 views

Clean URLs work*, but not when I submit forms?

I have a local dev site configured (Ubuntu 14.04.1 LTS), and I copied a production website to play with there. Everything appears to work great. Clean URLs seem to work and I can navigate the site. ...