Questions tagged [drupal-form-submission]

Form submission is the operation for which the data user input are going to be processed by a form submission handler implemented by a Drupal module.

Form submission is the operation for which the data user input are going to be processed. Usually the form submission handler saves the data in a database table, but in some cases a module just outputs some data based on what users entered.

23 questions
2
votes
1 answer

Not able to make submit button work in form theme in drupal 7

I am trying to develop a module where in my form needs to be rendered in a tabular form. Everything is working fine except the submit button. It is neither calling default _validation or _submit functions nor _form_alter functions. I don't know…
2
votes
3 answers

Send Data from Drupal to node.js

I'm a newbie with drupal. I was trying to send data from drupal to node.js function and save the data from node into mongo. I wrote a function in php function sample_working_submit($form, &$form_state) { //Function to connect with node and save into…
Okky
  • 10,338
  • 15
  • 75
  • 122
1
vote
1 answer

Dependencies for custom forms in Drupal 7

I have several forms for a single content type in Drupal 7. The purpose of this is to initiate different workflows when the user submits the form, depending on the type of information included, and defined by the /url for each. These forms are on…
SciMeg
  • 11
  • 1
1
vote
0 answers

Drupal 8: How to add personal contact form for user only on a certain type of users content?

On my site, anonymous and authenticated users can both create content of the content type 'job'. What I want to do is create an application form that displays as a block on 'job' pages for authenticated users only(i can do up to here). I want the…
1
vote
2 answers

How to migrate webform submissions data from one drupal to another

Hello, I wonder if there is any way to migrate the records of a Webform (data submissions) of a site in Drupal 7 to a previous copy of the same site. My form includes text fields, images and files, and am aware that the records of the form are not…
1
vote
1 answer

Webform submission: how to send the translation of a variable by mail

In a Drupal project, i have a basic weborm. As soon as the user submits one, an email is send with all the things he just…
user1173169
1
vote
1 answer

Drupal 7 - FAPI Multistep form - clear form_state values - Add onther option

I'm creating a multistep form in Drupal 7 - FAPI. In the main hook_form() the redirection to the different steps are handeled. function hook_form($form, &$form_state) { if (empty($form_state['storage']['step'])) { …
kim.kaho
  • 43
  • 1
  • 8
0
votes
1 answer

How to create and return html with submitted form data - Drupal 8

I have created a customized form with Form API by Drupal 8. I need to use the data obtained through the form to run a research in the database and print the results with html onto the same page. I created the form through the buildForm method and I…
0
votes
0 answers

Drupal 8 webform: How can multiple users add score to the same submission (eg: exam)?

Ho can two or more users add score to a single webform submission ?. Any exist solution available ?. I have a webform called exam contain (Name, Email and some questions, Score(1->10)). The problem here when the user 1 add score (8), the user 2 see…
0
votes
1 answer

Drupal 7: Insert into content type from custom module function

I created a form inside a custom module, in a drupal 7 project, and I need to insert the values into a custom content type called 'players' Here is what I have for a form: function custom_module_reg_form($form, $form_state){ $form['first_name'] =…
0
votes
0 answers

Drupal 8 Custom Form Submit override with Javascript

I have written a custom module in Drupal 8 which has javascript integration with Paymetric. I am handling this form's submission with javascript, however the problem is, it triggers form validation, but never submits the form. On the other hand,…
0
votes
1 answer

How do you modify entity references on a form in a custom ajax action in Drupal 8?

I have added a custom button to a form: $form['actions']['autotag_content'] = [ '#type' => 'button', '#value' => 'Autotag Content', '#ajax' => [ 'callback' => ['\Drupal\taxonomy_migrate\taggerService', 'tagContent'], …
0
votes
1 answer

Drupal form_submit doesn´t work

I'm trying to send a simple costume for un Drupal 7, but I cannot get it to get the variables, It goes back to me form but with out any values or try to print them but nothing.Please Help
Gucho Ca
  • 690
  • 6
  • 17
0
votes
2 answers

Drupal 6 Form API - Passing Values

I'm trying to write a custom module in Drupal 6 and trying to add a simple-ish form in the admin area using the form API. I've got the form showing but can't seem to get the from to populate itself again when submitting and then reloading the page.…
0Neji
  • 1,038
  • 1
  • 14
  • 36
0
votes
1 answer

Drupal form with custom arguments built twice

I'm trying to pass arguments to a form called by "durpal_get_form", in a function PHP called in AJAX from a JS script. So I did something like this : // Load form $form = drupal_get_form("_bto_ajax_submenu_organize_form", array( 'territories'…
Alarid
  • 770
  • 1
  • 6
  • 19
1
2