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

learn more… | top users | synonyms (2)

1
vote
1answer
17 views

Difference between hook_node_view() and template_preprocess_node() with seeing messages

When I add a form to a node's render tree using hook_node_view(), eg <?php /** * Implements hook_node_view(). */ function MODULE_node_view($node, $view_mode, $langcode){ if ($node->nid == 9 ...
0
votes
0answers
18 views

set form error inside computed field

I am doing complex calculation using computed field and trying to set form_set_error and stop form submission, also filled values should be retained. form_set_error($field_val, t('Validation ...
0
votes
0answers
10 views

Allow users to enter more than one option not on the list using others textfield in drupal 7 webform select option component

As shown in the image when "other" is selected from list box an textbox is displayed .Now it is possible to input only one item to this list box .Is it possible to add many items to the list box by ...
0
votes
0answers
20 views

Show message after form submit, render where?

I'm building a form inside a module. Upon successful submit of the form, I want to display a message to the user. I'm unsure of how to do this the best way. Right now I', calling: ...
-1
votes
0answers
15 views

Create a button for user to enter content

I've juste created a new site and i'm having problem customizing it. 1-) I want to allow users to create own content(prayer requestion and testimonial). 2-) I've created content type and set ...
0
votes
0answers
16 views

“Username field is required” error at registration, nothing in log [on hold]

If a visitor try to register here https://wear-freaky.com/user, filling all forms correctly and clicking to submit, the error message "Username field is required" appears and no log error is created. ...
0
votes
1answer
12 views

Redirect to page in form submit and use the form data in new page

How to redirect in drupal 7 in form submission, I need to use the submitted data in next redirected page but below video_subtitle_view function is not printing anything How do i do it /** * ...
1
vote
1answer
17 views

Change data on form submit handler

I have a form alter handler like this. function toyotaec_form_webform_client_form_seleccionar_alter(&$form, &$form_state) { $concesionarias = concesionarias(); ...
0
votes
1answer
33 views

Submit to external url via Ajax & get return

I need a Drupal form to submit a file to an external server using ajax. I have done the form using Form API and I am able to submit it via Ajax, But the Drupal throbber never stops and I am not able ...
0
votes
1answer
32 views

Preventing webform save

Goal: Using webform (and it's hooks) in drupal 7 I need to, under certain conditions, avoid saving the form submission (i.e. under those conditions I need to discard the submission instead of saving ...
0
votes
0answers
13 views

Add a button to a custom page to call a function from my module.

Having built a report page for property payments I would now like to offer up a button to export the report to excel. I will use the PHPExcel module to write an export function in my custom module. ...
1
vote
3answers
55 views

form submit handler is not called

I tried to mimic the multiple user deletion feature of user.module but for some reason the confirm form submit handler never get called. I don't know where the problem lies in. Following is a working ...
0
votes
1answer
14 views

Submit handler is not called from theme function

I am actualy trying to build up a dragable table, but for some reason after implementing the theme_function, my submit handler is not longer getting called. This is what my Code actualy looks like: ...
0
votes
1answer
35 views

Drupal Form API submission to create node

I have created a custom form in my module using Form API, the problem is it's kind of huge form (it consists lots of fields and fieldsets), I wanted to save the form as node after submission. I can ...
0
votes
1answer
50 views

Webform custom submit handler rebuild

I am acutally trying to build a custom webform submit handler to force the form to be rebuilded. I know that this is possible with the integrated webform settings, but I need to do it ...
-1
votes
1answer
38 views

Form processing issue while generating a dynamic form and preparing via API calls directly

How can I fix the processing and submission of forms that I am preparing and rendering dynamically via API calls. function drupal_set_confirmation($message, array $options, array $escape=array(), ...
0
votes
0answers
21 views

Drupal behaviors don't run with form submit results returned page

I have some Jquery in a Drupal Behavior js file in my theme used to reveal a comment form on clicking a 'add comment' button. visit to the page, on clicking the 'add comment' button the revealing of ...
0
votes
0answers
21 views

How to redirect to an absolute url? [duplicate]

Through the code, I will wish my redirect the user to an absolute url. I tested with drupal_goto () but it only works with relative urls. I wish to go to another domain that current_domain thank you ...
0
votes
0answers
17 views

Webform submit buttons redirect to first page when clicked twice [duplicate]

Hi I'm relatively new to Drupal 7 and I'm currently working with a multistep webform. I'm having a particular problem around the Previous/Next submit buttons which seem to work fine when clicked ones ...
0
votes
1answer
24 views

Showing a message while downloading a file from hook_form_submit

I have a form which creates a csv file and starts a download if it is successful. I also attempt to show a success message at this point but it never shows up because I use drupal_goto to download the ...
0
votes
1answer
78 views

I want to save data using ajax. But AJAX callback function replace method not working ? why?

THIS MY CODE: function form_test_permission() { return array( 'submit_form_test' => array( 'title' => t('Submit_form_test'), 'description' => t('Submit ...
0
votes
1answer
36 views

download file on form submission

I have created a form which has only a submit button. In the submit function I am generating csv file and saving it to the files folder using fputcsv function. But Now I need extra functionality of ...
3
votes
1answer
56 views

Complex form - merge of two with single callback

I have a complex form of two logical parts, which I have placed in different functions (my_module_partner_form & my_module_fields_form). Both forms have submit handlers (my_module_partner_form - ...
0
votes
1answer
20 views

How to change the title of submit button when someone register in mailchimp?

I want to be able to change the title of the submit button of the Mailchimp block when someone subscribes or unsubscribes to mail chimp list. I'm using mailchimp block on D7. How shall I do it?
0
votes
0answers
30 views

How to edit comments?

I'm trying to edit comments for the forum; instead of updating comments, it is creating a new comment. After inspecting some code in the Comment module, I found out that there is no CID in the $form ...
1
vote
1answer
55 views

Custom form with custom submit

I'm building a custom form that will show some details from a web service. On my page callback I have two fields and submit button: <?php $form['starting_date'] = array( '#type' => ...
0
votes
2answers
60 views

How do I submit a form with limit_validation_errors?

I want to create a node. If users put something in the required field, it will show an error message; if users don't put any value in the required field, the node will be saved without the required ...
0
votes
2answers
71 views

Appending a hidden input value to a textarea value?

So basically what I need to do is append a hidden input value to the text-area without overriding the original texarea value on submit. What am I doing wrong? This is in the template.tpl file. ...
0
votes
0answers
15 views

Render Intermediate form results in multi-page form through Webform module

I am using webform module and wonder how can I display intermediate form results in a multi-page form after each pagebreak in the form. I found tutorials on how I can display end results of the form, ...
1
vote
1answer
124 views

prevent submit in ajax call

I have a form with 2 submit in it, one of them is a button to generate codes, everytimes I click on generate form_submited called up and a record insert in db, how can I prevent form_sumit in ajax ...
2
votes
2answers
53 views

Drupal Forms API how to get degree sign onto submit button

I'd like to have a submit button with "°C" value on it. But when I just copy paste the degree sign, I get an empty value. When I try HTML code for degree sign (&deg;) it is escaped so I get ...
0
votes
0answers
15 views

Product has been created but The post could not be saved. while creating a product in ubercart module

i am trying to create a product in drupal 6 by using ubcart module but this error occurs Product productname has been created. The post could not be saved. can i know what is the problem and how ...
1
vote
1answer
135 views

How to send data like NAME[]=value via POST request and simultaneously redirect user to 3rd party server?

I'm writing a custom module which needs to send data string like this: "CODES[]=xxx&NAMES[]=xxx" via POST to 3rdparty payment gateway AND redirect user there. I've written a form to gather data ...
0
votes
0answers
34 views

form select field saves label not value

This is my form "select" field. $form['example'] = array( '#type'=>'select', '#title' => 'Example', '#options' => array('return_value1' => t('Display Value 1'), 'return_value2' => ...
0
votes
2answers
88 views

Redirect to login on form submit

I want to allow users to fill and submit a form even if they are not logged in, however if they are not authenticated yet, they should be redirected to login first, and after a successful login the ...
0
votes
1answer
56 views

How to add a 2nd submit button to a node form?

I need to have an extra Save button at the top of my node form. Pressing the 2nd button should do the same action like the regular one. The following code creates a 2nd save button: function ...
0
votes
0answers
6 views

Pre-defined forms for OG Managers to define

Good morning! I'm currently building a community site for CrossFit gyms in my city. I've built the "gyms" using Organic Groups and, after reading a lot, I can't find a way to do the following: I ...
1
vote
1answer
42 views

submit function not call

I create a menu , in call back of menu create add content form , add one submit function to it, but the function not call NEVER . where is the problem? $items['share/%'] = array( 'page ...
0
votes
1answer
307 views

Using webform rules to create node after webform submission [duplicate]

First of all, let me explain my project. I want users to place orders of products using webforms and then create a node with a link/reference to the submission and others custom fields. It looks like ...
0
votes
0answers
28 views

Theme_table not returning all rows/cells on submit

I have created a theme table which creates, basically, a giant editable table, based on a database grab. I have gotten the table to the point now where it will properly display as a "form" and allow ...
0
votes
1answer
27 views

Form submit not firing

For some reason I am unable to get into my form_submit function. I have attempted to add a custom handler to the #submit to force the form to submit to it however I haven't gotten any where. Any ...
0
votes
0answers
93 views

hook_form_alter always returns truncated values

After changing the value of text fields with hook_form_alter, the strings passed as value are truncated : only the first character of the string is saved in the database. I tried with two content ...
0
votes
0answers
118 views

Force Webforms to validate using jQuery

I have a form that I've added a bit of extra validation using jQuery to $('#webform-client-form-27').on('submit', function(){ if ($('#edit-submitted-email-address').val() != ...
0
votes
2answers
37 views

Can't get to /admin

First time using Drupal. It's a friend's site that her former developer stopped hosting because he couldn't afford his server and gave her the public_html zip and an .sql file on a flash drive, she ...
0
votes
0answers
34 views

Populate and submit “content creation” form programmatically? [duplicate]

I have simple database table with two fields "Title" and "URL". Can we pull the values from database table programmatically and populate the above form with "Title" and "URL" and finally submit ...
0
votes
0answers
13 views

Is there any method by which I can generate “feeds item” , from a “rss feeds url” programmatically using feeds API

In feeds module,while creating feeds content --> add content --> feed "Title" and "Feeds URL" are entered in "feeds creation form" and feeds items are generated automatically. In similar fashion, ...
0
votes
1answer
38 views

Populate and submit “node creation” form programmatically

Is there any method using which I can populate the "node creation form" (example : Article or Basic page) and submit it programmatically ? any help is appreciated, Thank you.
0
votes
1answer
30 views

Webform - Multilingual Support

I have a webform which is built in English. I need to add two more languages. Is that possible to display many languages in webform?
1
vote
1answer
82 views

Submit button calling wrong submit handler

I have a form with 3 different "Submit" buttons, and I want each of them to map to a particular Submit handler. I have included these items using the following, generic, pattern: ...
0
votes
0answers
37 views

Problem in webform buttons when I use HTML code in button in Internet Explorer

I faced a problem in my project. I wanted to add icon WebFont to my buttons so In my theme_name_button($variables) function I changed submit button format from "input.submit" to "button type=submit". ...