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

learn more… | top users | synonyms (2)

0
votes
1answer
17 views

Custom content type add form

I am brand new working with Drupal 7 and I am working on a professional project and I would like some help to achieve some requirements. We have some content types like associations. Authenticated ...
0
votes
0answers
18 views

Prevent redirect to admin/structure/types after adding content type

Whenever I submit a form at e.g. admin/structure/types/add, or admin/structure/types/manage/article, or admin/structure/types/manage/page/fields, I am redirected to the admin/structure/types overview ...
0
votes
0answers
12 views

module_form_submit not working from template (.tpl.php) file

I have added a template file for one of my modules, I have also implemented the form api to get buttons inside the file. The buttons appears on the page but re-direct to the same page, as if the ...
-2
votes
2answers
35 views

Don't Allow User To Log Back In After Logging Out Of Drupal Site

This might be a simple fix, but I cannot figure out how to do it or find a module that accomplishes this. I simply need to dis-allow a user to log back into a site after they have logged out. They ...
0
votes
0answers
18 views

#limit_validation_errors submit problem

I have a problem using #limit_validation_errors for a submit button on which I dont want all the validations to run. Here's my custom submit button : $form['actions']['draft'] = array( '#type' ...
0
votes
1answer
12 views

Form API Submit Button for Multiple Forms

I created a module with 3 forms on it. Is there a way to only have one submit button at the very bottom of the page that will store all three values?
0
votes
0answers
13 views

on submission of form respective form should open [duplicate]

in my form i have to show two radio button and one submit button, for example candidate(radio) organization(radio) submit button. my requirement is that if user click/check on candidate and ...
0
votes
0answers
18 views

How to detect if form is submitted, when form function is called twice

I have simple form in aside block: function my_form($form, &$form_state) { $form['save'] = array( '#value' => t('Save'), '#type' => 'submit' ); return $form; How can I detect (in this ...
1
vote
2answers
31 views

Redirect to a specific page when user update their profile

Is there any way to redirect the user after save their profile information. I would like to redirect them to a specific page. To be clear, here is the Flow: User go in his profile He change his ...
0
votes
0answers
12 views

Webform Submission & Commerce Order Database Relations

Where is the relation between Webform Submission ID & Commerce Order ID in the drupal database? The problem is one of my orders crashes after editing the webform so I guess that the relation ...
-1
votes
1answer
29 views

get checkbox values from a form

I have a form with dynamic values in it. $resolved = array( '#id' => 'resolved', '#type' => 'checkbox', '#return_value' => $result2[$i]['id'], '#attributes' => array('name' => ...
0
votes
1answer
23 views

Can I use hook_uc_add_to_cart to ask for a yes/no confirmation before adding to cart?

For certain products in my ubercart catalog, I need to show a legal disclaimer before actually adding them to the cart. I was thinking to use hook_uc_add_to_cart for this, because it allows me to ...
0
votes
0answers
41 views

Setup a progress bar with AJAX in a custom module

I have a question about how to setup and see an updating progress bar into a custom module based on a custom form submssion I have a custom module, which is basically based on a form which allows to ...
0
votes
0answers
29 views

sending parameters to external url and redirect to that url simultanously

I saw this link:Webform - Submit values from Drupal 7 from to external url I have this problem too (sending parameters to external url and redirect to that url simultaneously)! But I also want to ...
0
votes
2answers
38 views

Drupal 7 custom submit handler not getting triggered

I am having a problem connecting a custom submit handler to a form. I am trying to switch off redirecting after the save of an eck entity on edit form. But i am not getting that far as my submit ...
0
votes
1answer
84 views

Submit values and redirect user from to external URL

what is the equivalence of: <form action="https://paypaad.bankpasargad.com/PaymentController" method="POST"> <input type="hidden" name="content" value='<?php echo $xml ...
0
votes
1answer
25 views

Why does a try block affect drupal_set_message?

I have a try block set up: try { //some code throw new Exception ( 'My exception message' ); } catch ( Exception $e ) drupal_set_message('Caught exception: '. $e->getMessage(),1);} But ...
0
votes
1answer
19 views

Not validating required validation

drupal_validate_form is not validating required validation when i was creating a node programatically . Can any one say, it is design like that or am i doing something wrong . $node_form = ...
1
vote
0answers
25 views

Drupal 7 Webforms 4, prevent submission if value of field is less than or equal to previous submission

I know that you can prevent submission if a specific value has previously submitted. However can you prevent a submission if the submission is less than or equal to a previously submitted value. ...
0
votes
2answers
49 views

Re-use a form array multiple times

I'm a little stuck here. I want to make a block with 4 upload fields. So i'm trying to set the keys in 1 form array with the name file_link. When editing the block, I can see the 4 upload fields. But ...
0
votes
2answers
68 views

Form submit handler not working

I'm developing a pretty basic module catalog_request that creates a form. I'm replacing the form's default submit button <input ..type="submit" /> with a <button ...>click</button> ...
0
votes
0answers
25 views

Rebuild exterior elements of form on submit

On the user page I display two types of groups a user can be subscribed to: a pending membership or an approved membership. To illustrate this: The 'cancel membership request' button is the submit ...
0
votes
0answers
23 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
17 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
41 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
86 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
1answer
74 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
1answer
20 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
20 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
55 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
20 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
64 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
48 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
28 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
81 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
90 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
60 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
53 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
254 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
78 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
24 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
47 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
126 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
37 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
37 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
17 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
34 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
25 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
193 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 ...