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

learn more… | top users | synonyms (2)

0
votes
0answers
12 views

I want to programmatically submit an invite_form from invite module using drupal_form_submit

I have invite module installed which has invite_form which is used to send (email) invite to The invite_form function from the invite module is as follows: function invite_add($type) { ...
0
votes
0answers
17 views

how to deselect a taxonomy already subscribed while submitting a form

I have a taxonomy based subscription form which alerts user when we have new posts published under subscribed taxonomy. Currently, if a user is subscribed to 2 taxonomy, say A and B, and the user ...
0
votes
1answer
15 views

Creating a form with GET bypases the validation and submit

I am creating a simple form, when sumits, shows result from an external API. But URL remain the same, so you cant get a url if your search result and send it to someone. But when I use get ...
2
votes
1answer
36 views

When are '$form_state['values'] copied to '$form' on rebuild?

as far as I understand it whenever you submit and rebuild a form (e.g. 'Add another item' on fields with infinite cardinality) something like this happens: User submits a form with filled values ...
0
votes
1answer
33 views

Example Hook form validate, get all node information after save news field

In a custom module, I do some operations on several content node (add field_collections and save) After that, I need to get all field_collections of my content nodes. But when I get, I have the old ...
0
votes
2answers
66 views

get nid of created node in custom submit and Page redirect after save

I am using Drupal 7. I have created a content type called person. And I have customize my node person adding form with custom submit button . But uses default Drupal node save function. I just uses ...
0
votes
1answer
39 views

Is it possible to change the form submit handler from within a validate handler (need to redirect to another form depending on values entered)

I have an initial webform (based on 3.x of webform module/Drupal 7) that needs to redirect to a second form if yes is specified in a yes/no choice. Otherwise if No, the first form should submit ...
0
votes
0answers
14 views

Form with Site Content that Creates an Entity with User Created Content and Site Content Combined

Webform and EntityForm do not seem to have the ability to create entities. Please help me find modules that can be used to build a Planning Form that creates User Created Planning Entities for the ...
0
votes
1answer
18 views

Saving form data of forms modified with form_alter hook

I understand how to add stuff like checkboxes and fieldsets to existing forms (e.g. the form displayed on the node edit page) using _form_alter. But what I don't understand is how to collect the input ...
0
votes
1answer
44 views

Can't save custom field data: form submit function doesn't fire

I've added custom "markup" field to the commerce_product table, next I've implemented hook_form_FORM-ID_alter, but submit function doesn't executed.
0
votes
0answers
16 views

views field - load dialog form to update single field value

Views of articles with tile field and the image field is shown to user. I need to load dialog form to modify empty imaged field with text "add image"(or any other cck field). I know how to set path ...
1
vote
1answer
60 views

How to combine Views, Rules and EVA to record submission?

I have a Drupal 7 site and I'm using Views, Rules and EVA. I have a specific requirement that I am sure can be achieved with the modules, but I am having no joy configuring a working process. I have ...
0
votes
0answers
22 views

Unable to edit a field in the existing submission through webform update in Drupal 7

On the confirmation page (basic page template), I am trying to unable to edit one Hidden field through code. I don't know what I am doing wrong but it just doesn't work. Here is the code:- <?php ...
0
votes
2answers
25 views

Restricting the term reference field from creating a new vocabulary term

I have a term reference field in a form and it is an auto-complete term widget, it has a vocabulary that supplies the values to it. My intention is to allow users to input only the terms which are ...
0
votes
1answer
37 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields ...
0
votes
1answer
47 views

Altering Webform email %value before sending email

I summon your wisdom on this day because I can't figure out how to alter submitted Webform values that are used in email templates. Here's my situation: I have a "contact us" form (set with Webform ...
0
votes
2answers
43 views

Need to make Anonymous user create node through a Form but can't

I need to make anonymous user create a node through my site. The node which is create would be unpublished, which an admin can publish later. I wrote the following code which works perfectly but the ...
0
votes
3answers
51 views

Debugging what has been submitted in a form

I would like to like to be able to print out what has been submitted in my form in the submission form. How can I achieve this?
0
votes
1answer
93 views

Webform confirmation message on same reloaded page

Webform has option to reload the page when submitting the form, but it just refresh the page and doesn't show any confirmation message that the message was sent etc. This might look misleading for ...
0
votes
0answers
54 views

Webform custom submit button

Hy, If someone can help me with an idea. I have a second button on my webform with an specific handler. Everything it's OK it execute my function but I want that this button to also save in the db of ...
0
votes
1answer
23 views

Insert GET parametes to form api

I have a view with exposed filters form inside. I want to add a GET parameter to the action of the form. What i want to achieve is that when the user submits the form, the parameter will be executed. ...
0
votes
1answer
32 views

ajax form element sometimes triggers submit

I have found some strange behaviour of form ajax elements. I have added #ajax to my form elements: ['#ajax'] = array( 'callback' => 'mymodule_ajax_callback', 'event' => 'change', ...
0
votes
2answers
68 views

How to prevent double form submission in drupal

How to prevent double form submission in drupal when i create basic page and click submit 10 times.. then node create 10 times of same content please suggest me, how to prevent
0
votes
1answer
26 views

Image as form submit

I am building a custom form inside a block that has a clickable image as submit. Here the screenshot of the outcome: Here is the form code: function my_form($form, &$form_state) { $image = ...
0
votes
0answers
25 views

ajax form element with normal submit

I need help/suggestions with ajax forms. I have a simple form, with a few elements and submit button. What i want to do is save each form field async. with ajax before user submits form. A have a ...
0
votes
1answer
15 views

Scope of constants in drupal

I am connecting to a third party library to connect to authorize.net. In order to begin making any calls to the library, you must first define some constants, such as: ...
0
votes
1answer
21 views

Using forms API - sending submitted data as an XML attachment to an email address

I need to have a request form on a D7 site which does a few different things with the form data: Writes to database table (standard); Emails a copy of the form data to a site administrator on a ...
0
votes
1answer
23 views

Unable to show the Uploaded Image by the user in user submitted form for node

On my site, we have a form which directly adds data into one content type. When user submits the form, all the field data is inserted. It's working fine except the Image field. What I want is that ...
0
votes
0answers
93 views

Call AJAX function on Form Submit Twice

I have a form in a popup that I wanted to submit and not redirect but display the confirmation message still in the popup. I was able to get that part to work, but then I thought why not display the ...
0
votes
1answer
42 views

How to build a block on form submission?

I know how to build a block using these functions : hook_block_info() hook_block_configure() hook_block_save() hook_block_view() But on a form submission a few information is saved into DB and ...
0
votes
0answers
22 views

Need help deciphering

A friend is seeing some items in his logs and he asked me if I knew what it was doing. What he's seeing is form_build_id=form-xxxx&form_id=-1%27%xx%xx&op=xxx The xxxx in the form_build_id ...
0
votes
2answers
41 views

form or content type creation interface?

I want users to insert information. I can define a complex Content type with multiple fields, restricting the kind of info user is allowed to insert (integer, text…), as well as rules… and expose it ...
0
votes
1answer
25 views

Custom Module Separate Settings for Each User

I am working on a custom module. I am currently using system_settings_form to enter an API key and it works fine. However, I need users to be able to enter different api keys. What is the best way to ...
0
votes
1answer
30 views

form_submit() and form_validate() doesn't work for tableselect

I'm trying to create sort of slider that slides the user selected blocks. to do so I need to list all of the blocks and let the user to select them, I used tableselect. this is my MODULE.module ...
0
votes
3answers
40 views

How to place all form buttons on top of the page, before the form, in all forms?

Since these forms can get quite big sometimes, especially with a lot of files attached and default preview for them. Related, but not the same: How can I display a form button on top of the form?
0
votes
1answer
92 views

Passing array from a form to another

I have a custom module that has a form like this : /* * Sytems settings form for listing skill */ function skillbar_form($form, &$form_state) { $form['skill1'] = array( ...
0
votes
0answers
39 views

Poll Module Form API 'Radios' Change to 'Submit' button

This seems like a pretty basic question. A previous post was similar already here: Modifying Poll Template to have big buttons for voting All I am looking to do is change the standard radio buttons ...
0
votes
1answer
43 views

Form submit POST renders page before submit handler is called

I have a search form in the header that is simply adding a search term to the current URL. If you are on example.com/list-page and submit a search, it just sends you to ...
0
votes
0answers
18 views

Set user field (int) with webform submission field (int)

I would like to update a property of a user when a specific webform is submitted. I have a Rule After a webform has been submitted with a condition Webform has name with some actions. The actions are ...
0
votes
1answer
70 views

Preventing webform saving in database

Is there a way to prevent a webform submission to be saved in the database? I have added a custom submit handler to my webform but I don't want to save in the DB but send it to an external ...
0
votes
1answer
44 views

Set value field before submit

I'm trying to set a value before the form is submitted. The field is calculated by two other fields. One of them is a property of an entity reference. This is what I do: function ...
0
votes
0answers
88 views

Why is the value of my textarea input being truncated?

When I receive the form data via email the values of the comments text areas are being truncated. This is the code. if($_GET['section'] == '2'){ $pups_num = $_SESSION['pups_seen']; ...
0
votes
0answers
17 views

Submit to Web to Lead form and Save a Record of the Submission

I have a Drupal site that acts as a window for visitors to submit applications (in the same manner as you would submit a job application on a careers site). The structure and layout is configured via ...
1
vote
3answers
67 views

How do I set descriptions to each checkbox option

Is there a way to set descriptions to each checkbox option? What I would like is for Option #1 to display and then directly below it a description for it, then Option #2 along with its description. I ...
0
votes
1answer
255 views

Problems rendering drupal 7 user registration form with ajax in BootStrap 3 Modal

I have a subtheme based on bootstrap 3 and am trying to load user registration form(user_register_form) on front--page.tpl.php, I am adding #ajax to the submit button using form_alter ...
1
vote
2answers
66 views

Warning: in_array() expects parameter 2 to be array, string given in _drupal_http_use_proxy() (line 1100 of /var/www/html/includes/common.inc)

Whenever I add any content on my website, I get this warning. Warning: in_array() expects parameter 2 to be array, string given in _drupal_http_use_proxy() (line 1100 of ...
0
votes
0answers
38 views

Using hook_webform_submission_presave in validation handler

I am trying to modify the value of a hidden email field based on user input before the value is saved to the database and the email is sent. I thin using hook_webform_submission_presave is the way to ...
0
votes
3answers
95 views

create a downloadable file after submit webform

Hello Im not sure if this can be done, but Im trying to make a simple app where you create your own lexical analyzer. So in the webform I ask the necessary information, then I need the following: ...
0
votes
2answers
70 views

Modify user submitted form data before it is saved an emails are sent

I am new to drupal but I do have php experience. I am trying to modify an existing custom module that handles some forms on our site. The form in question is used to send an email to the address that ...
0
votes
1answer
64 views

Display submitted data using a select field option - webform module

I'm new to Drupal. I have a form that I created using Webform Module, is there a way to pull data submitted by Webform and group it by a column. To display result in a view