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
19 views

Render webform submissions in template

I want to render webform submitted data below the form on every page from a specific content-type. But not all fields are allowed for everyone to see like a phone number, views could solve that but ...
0
votes
1answer
18 views

How stop HOOK node form submit

My question is in the title, when i add a new element of entity "intervenant" I check, if there is already an intervenant with the name used in form_state, if the query returned me a result, i want to ...
0
votes
1answer
16 views

What is the syntax for using a token on webform confirmation page for Drupal 7 Webform 4

I have an Email field on my webform with the key email_address. On successful webform submission, I would like to display the confirmation message as. Further instructions have been sent to ...
0
votes
1answer
26 views

How to pass default values on node form through form_alter when using confirm_form?

My confirm form should consists part of node form but with disabled fields. I mean after I submit node form I rebuild it and append confirm form in hook_form_alter()(Before it I change submit callback ...
0
votes
1answer
40 views

Add menu item in hook form submit

I have an entity, when i submit this entity i want to add the new entity created in a menu as a link. But in this menu i have a tree links so i don't know how to put my link in a specific tree. I saw ...
0
votes
1answer
22 views

Creating checklist form programatically

I need to create checklist form(s) comprising of a different sets of checks with different ways to enter an answer. The end user (who will prepare checklist) should not need to add fields to the ...
0
votes
0answers
15 views

Access results based on OG membership?

If I had a series of webforms that will get filled out by each user, how would I grant results access to only the users in one of the submitter's OG groups? For example, teachers have students in ...
-1
votes
0answers
22 views

append new form with ajax_command_append

My task is to add multiple forms to a page, with a simple select. Eg: user selects an option in select and based on the selection, i need to add new form to the page. I wanted to do this with ...
0
votes
1answer
23 views

Unable to print form submission result

The structure of my form is as follows: Form is built here function mymodule_member_search_form The form submission processing happens in the callback function ...
0
votes
2answers
44 views

Validation and Setting value for Multi-value fields

Consider for a content type, there is a text field with multiple values capability activated. How can I check its values by $form_state inside the Validate/Submit function? How can I set its values ...
0
votes
0answers
20 views

how can i add record to db, and load the table records under the form in specific theme using ajax?

I need a form to add record in db. after the form has been submitted the new table content should be shown (in a specific theme) without refreshing the page so I need ajax submit but I don't know how ...
0
votes
1answer
18 views

Alter ctools_ajax_command_redirect()

My problem is redirect after webform submission. So I have a webform node and AJAX on this submit button (hello "Webform Ajax"). How I do redirect: I'm just using hook_form_alter() and add to this ...
1
vote
1answer
110 views

How to refresh/update a Block or View after a form submit?

I have a View of created entities displayed as a block. On the same page I have a form with which new entities can be created, and this form submits through AJAX because I do not want a page reload ...
0
votes
1answer
19 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
23 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
20 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
42 views

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

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
36 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
26 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
32 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
35 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
18 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
40 views

get checkbox values from a form [closed]

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
30 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
116 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
61 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
55 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
204 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
26 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
22 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
37 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
58 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
135 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
42 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
54 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
127 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
108 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
27 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
23 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
79 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
27 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
68 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
72 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
32 views

Restricting the term reference field from creating a new vocabulary term [duplicate]

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
147 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
137 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 ...