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

How to query the database to create a report based on user input variables in a form?

I am creating an example report of user data based on selection criteria selected in a form. I can create the form variables, and I can redirect the user to the report output page, but how do I ...
0
votes
1answer
9 views

How to render Entityform submission (entity) without DOCTYPE and HEAD tags?

I need to render entity as a part of page instead of individual page. By this I mean I want to able to render it without DOCTYPE declaration and HEAD tags. Typically this could be done within ...
-1
votes
0answers
15 views

Insert item in every comment using Comment.module

I need to insert a button on every comment(not on comment-form) which will submit informations about the comment to a php file. So I have to create a form with hidden fields(just the button is ...
0
votes
1answer
21 views

Prevent Entityform Duplicate Submissions

I have a simple text entityform setup on my drupal website. I was wondering if there was a way to prevent users from submitting a submission that has already been submitted. I am new to using Rules, ...
0
votes
1answer
14 views

overriding submit functions with content types

I have created some content types, some are created programmatically, others (including the one I am interested in are where created using the front end GUI. And this is where my issue starts, I ...
0
votes
2answers
39 views

How to make submit button work in form themes

I am trying to create a form which calls an external template file to format the form but ended up into a typical issue. This is what I was doing. I created a hook menu and called a theme, in the ...
0
votes
0answers
20 views

Webform Paragraph

I am using Paragraphs to let the content managers flexible add content. I want to create a Webform Paragraph, where you can choose an existing webform to the paragraph. The webform should be used more ...
0
votes
2answers
18 views

How to make a checkbox field required when a radio button is selected.

I need to show a validation error message when a radio button is clicked but none of the checkbox is checked. The checkbox field is optional in content type. Should be required when radio button is ...
1
vote
1answer
23 views

dpm breaks only if used in form custom submit on edit node

Problem I have a case where the dpm printout is working fine in all cases except on a specific node type, in a very specific scenario. If I edit the node type and place dpm($form_state) in the ...
0
votes
0answers
18 views

How to programmatically save a form with it's default values/state

What is the easiest way to get $form_state and all it's default values? It only needs to contain the default settings that are loaded from the variables I already set. I'm trying to manage theme ...
0
votes
2answers
38 views

drupal store and retrieve variable from $_POST array

This is really simple question for the user who are using DRUPAL for many years.But for me it is creating a big issue. I already made a form using the drupal form api.But after submit the form I want ...
0
votes
0answers
63 views

Adding group content to an organic group doesn't persist after submit action for hook_form_alter

In the submit handler I wrote for my implementation of hook_form_alter for a node edit form, I can successfully add a group content node to an OG using og_group() - og_is_member() returns TRUE after I ...
2
votes
4answers
63 views

myform_validate() and myform_submit() functions not responding

I have built a form from following examples on tutorials but neither the accompanying _validate() nor _submit() functions are responding when I submit this form. This is my codes: /** *implementing ...
0
votes
0answers
10 views

Drupal form URL redirect parameter failing on redirect to view

I'm trying to redirect a comment form to a URL other than the node where the comment was posted. If I redirect to a node or a static view URL it works correctly: Comment URL: ...
0
votes
1answer
10 views

Textfields are not populated with user inputs after validation fails

Im facing the same problem than this guy : 6 - Form fields getting cleared off of user inputs after validation errors The difference here is that I'm not using ubercart. Also my textfields use ...
0
votes
1answer
23 views

How to solve Mysql PDOException: SQLSTATE[42S02]: Base table or view not found:

I have created form to add general information about daily work. When I submit this form it will give me following error. Please help me. I have checked my setting.php. There prefix is drup_ ...
-1
votes
1answer
53 views

Form state values problem

I dont understand the problem im facing. I'm building a big form (in which you can add products, modify quantity, etc etc and validate. I'm getting consistency data problem between what's in ...
0
votes
0answers
6 views

How to validate user inputs for an entity which uses fields created by the Field Manager UI

I have successfully defined a new entity and made it fieldable. I can the display the form using the field_attach_form() function. My issue now is that I would like to validate the user inputs. When I ...
0
votes
1answer
23 views

Override submit function in Drupal 8

How can I override the submit function in Drupal 8? (alter the submit function) I tried adding this to my hook_form_alter: $form['#submit'][] = 'mymodule_form_submit'; but it doesn't goes into the ...
-1
votes
1answer
24 views

How to show Drupal 7 Forgot password form and its confirmation message in jQuery UI dialog

I want to show Drupal 7 "Forgot password form" with in jQuery UI dialog with all its buttons. When user submits his email address confirmation message should also be shown in jQuery UI dialog along ...
0
votes
0answers
8 views

How to create an edit form for admin input

I would like to create from a module an add/edit form. For now I made an add form that looks like this: $form["locationTitle"] = array( '#type' => 'textfield', '#title' => t("Vietas ...
0
votes
0answers
8 views

Webform labels disabled for submitted submissions in back-end

When you create field components for your webform you can select if you want to hide the label of the field for the front-end. So it all makes sense, if I decided to use placeholder (Webform Hints) ...
0
votes
0answers
21 views

How to get submitted form value inside hook_preprocess_hook() in Drupal 7?

I have a management module which consist of two theme pages[much like the core Search module], management-block-form.tpl.php: for showing the form and management-table.tpl.php: for showing the ...
0
votes
0answers
32 views

Can't replace page content on node from ctools modal

I have a custom field formatter on an Event node that displays data from a multifield in a simple HTML table (the multifield has a user entity reference field and a text field that contains a number ...
1
vote
0answers
25 views

Expose all Drupal Webform submissions data in one view?

Does anyone know how to expose all the Drupal Webform submissions data in a single view that can then be used with the conditional filer? I have tried the Webforms MySQL Views module way and I think ...
0
votes
1answer
31 views

Drupal Form Button + “Are you sure”-Button

I am trying to add an own JS function to a Drupal Core Form - think Config, Development, Clean Cache. This function basically just asks if the user is sure. Here is what I have so far: ...
0
votes
0answers
74 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
43 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
35 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
45 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
59 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
2answers
31 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
23 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 ...
0
votes
1answer
28 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
83 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
38 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
23 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
243 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
28 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
30 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
23 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
51 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 ...
1
vote
0answers
67 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
2answers
39 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
76 views

Issue to pass argument to the function on button click in custom module

I have created a custom module in which list of mp3 tracks being displayed. After every track there is remove button and button id is actually nid of the track. Now what I want is when I click on ...
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
83 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
46 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
28 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 ...
0
votes
1answer
32 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 ...