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

learn more… | top users | synonyms (1)

2
votes
2answers
15 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
23 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
19 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
18 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
18 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
33 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
9 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', ...
0
votes
0answers
4 views

Default Bulk operations not working?

In the comment admin page, where all comments are listed, I'm adding few additional operations to the already existing Publish the comments Delete the comments I am including few options like, ...
1
vote
0answers
15 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
27 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
6 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
10 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
24 views

Nomination of nodes

I want to implement a nomination process. Users should be able to 1. Nominate existing Nodes of type 'course' 2. Nominate new content that should later be of type 'course' Alle Nominations should be ...
0
votes
0answers
23 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
27 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
32 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
37 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
16 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
22 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
11 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
37 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
27 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
24 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
20 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
33 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
47 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
28 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
7 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
37 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. ...
0
votes
1answer
4 views

views_row_selector module - capturing a form submission

I am using the views_row_selector module to add checkboxes to a table created in Views The hook_menu $item looks like this $items['admin/structure/account'] = array( 'title' => 'Accounts', ...
0
votes
0answers
5 views

Drupal Contact Form Emails Going To Some Emails But Not To Email Containing Domain Name

I know this has been talked about in other submissions, but I have not actually seen a solution to this. I have my Drupal email contact form that sends to multiple email addresses. All of the ...
0
votes
1answer
18 views

How to create add and edit pages for content types beside to Administration

In my drupal installation (Drupal 7) I have various users. What I want to do is, I want to enable somehow my users to be able to create content their own, without using the administration page. Lets ...
0
votes
1answer
73 views

How to query the database to create a report based on user input variables in a form?

I am creating an example report of user data based on selection criteria selected in a form. I can create the form variables, and I can redirect the user to the report output page, but how do I ...
0
votes
1answer
21 views

How to render Entityform submission (entity) without DOCTYPE and HEAD tags?

I need to render entity as a part of page instead of individual page. By this I mean I want to able to render it without DOCTYPE declaration and HEAD tags. Typically this could be done within ...
0
votes
1answer
45 views

Prevent Entityform Duplicate Submissions

I have a simple text entityform setup on my drupal website. I was wondering if there was a way to prevent users from submitting a submission that has already been submitted. I am new to using Rules, ...
0
votes
1answer
20 views

overriding submit functions with content types

I have created some content types, some are created programmatically, others (including the one I am interested in are where created using the front end GUI. And this is where my issue starts, I ...
0
votes
2answers
78 views

How to make submit button work in form themes

I am trying to create a form which calls an external template file to format the form but ended up into a typical issue. This is what I was doing. I created a hook menu and called a theme, in the ...
1
vote
3answers
150 views

Creating webform submissions programatically in order to use with SimpleTest

I'm trying to build out a SimpleTest to test out functionality on submitted webforms. I need to simulate loading a drupal webform node, applying fake data, and submitting the form (triggering a ...
0
votes
0answers
31 views

Webform Paragraph

I am using Paragraphs to let the content managers flexible add content. I want to create a Webform Paragraph, where you can choose an existing webform to the paragraph. The webform should be used more ...
0
votes
2answers
68 views

How to make a checkbox field required when a radio button is selected.

I need to show a validation error message when a radio button is clicked but none of the checkbox is checked. The checkbox field is optional in content type. Should be required when radio button is ...
1
vote
1answer
35 views

dpm breaks only if used in form custom submit on edit node

Problem I have a case where the dpm printout is working fine in all cases except on a specific node type, in a very specific scenario. If I edit the node type and place dpm($form_state) in the ...
0
votes
0answers
37 views

How to programmatically save a form with it's default values/state

What is the easiest way to get $form_state and all it's default values? It only needs to contain the default settings that are loaded from the variables I already set. I'm trying to manage theme ...
0
votes
2answers
93 views

drupal store and retrieve variable from $_POST array

This is really simple question for the user who are using DRUPAL for many years.But for me it is creating a big issue. I already made a form using the drupal form api.But after submit the form I want ...
0
votes
0answers
71 views

Adding group content to an organic group doesn't persist after submit action for hook_form_alter

In the submit handler I wrote for my implementation of hook_form_alter for a node edit form, I can successfully add a group content node to an OG using og_group() - og_is_member() returns TRUE after I ...
2
votes
4answers
66 views

myform_validate() and myform_submit() functions not responding

I have built a form from following examples on tutorials but neither the accompanying _validate() nor _submit() functions are responding when I submit this form. This is my codes: /** *implementing ...
0
votes
0answers
33 views

Drupal form URL redirect parameter failing on redirect to view

I'm trying to redirect a comment form to a URL other than the node where the comment was posted. If I redirect to a node or a static view URL it works correctly: Comment URL: ...
0
votes
0answers
22 views

Textfields are not populated with user inputs after validation fails [duplicate]

Im facing the same problem than this guy : 6 - Form fields getting cleared off of user inputs after validation errors The difference here is that I'm not using ubercart. Also my textfields use ...
0
votes
1answer
54 views

How to solve Mysql PDOException: SQLSTATE[42S02]: Base table or view not found:

I have created form to add general information about daily work. When I submit this form it will give me following error. Please help me. I have checked my setting.php. There prefix is drup_ ...
-2
votes
1answer
116 views

Form state values problem

I dont understand the problem im facing. I'm building a big form (in which you can add products, modify quantity, etc etc and validate. I'm getting consistency data problem between what's in ...
0
votes
0answers
11 views

How to validate user inputs for an entity which uses fields created by the Field Manager UI

I have successfully defined a new entity and made it fieldable. I can the display the form using the field_attach_form() function. My issue now is that I would like to validate the user inputs. When I ...