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

learn more… | top users | synonyms (1)

1
vote
2answers
29 views

Form input returns “1” instead of real value

On this page I have an select list with values from a file directory. This works. Only after submitting it doesn't get the value of it. It makes it "1". Normally with a "normal" select list this ...
0
votes
1answer
26 views

How do I change submit URL for exposed search filter?

I've created view using Search API Views with two different displays. First Page display (by_terms) and with the following options: Page settings: Path:/taxonomy/term/% Contextual filters: ...
1
vote
1answer
13 views

How can we use form directly without using drupal form handler

I want to post a html form into block as content and wanted to submit the form to a page. where I will need to get the form values using $_POST and do some process on it. How can i do that without ...
0
votes
1answer
14 views

Redirect to custom error page if node submit fails validation

I've embedded a node/add form on my homepage for submissions but for caching purposes, I need to have any server-side validation occur on a different page instead of itself. I.e. If the form fails ...
1
vote
0answers
10 views

Webform submission vs email submit

I have same webform in three different languages. In First two languages, after submit, page is refreshed, and confirmation message shown: "Your email was sent". But in third language, after ...
0
votes
1answer
20 views

Get values from ajax replaced text field in a form

On a edit page I added a form so the user can select what he wants to edit. With that info I used ajax to show the info which belongs to that item. But when submitting the form it isn't taking the ...
1
vote
0answers
27 views

Modify a node on the submit

I would like to generate a forum for each article posted on the website. Actually what i'm able to do is create the forum before, write the article and match a field with the forum. Now i would like ...
0
votes
1answer
21 views

How can I dynamically disable a single required field from validation in a form?

This is an extension of this question: Need help with AJAX callback function for text field validation in form_alter I have a form with a Username autocomplete field (txn_user). The editors want to ...
0
votes
1answer
18 views

Populate $form_state['values'] with defaults from drupal_get_form()

I'm looking to resave a form's defaults values. In core the test module uses drupalPost() to test the form so I'm thinking this will be custom code.
0
votes
2answers
22 views

Can't insert data to database on form submit

I am trying to insert some datas into database table on form submit like this: function form_example_submit($form, &$form_state) { if ($form_state['values']['select']=='1') $gender = 'male'; ...
0
votes
1answer
33 views

Parallel Execution of Javascript Function and Drupal's Default Event After Submit

I was trying to save something in my database using the following code below: function myid_user_page_form(){ $form = array(); $form['submit'] = array( '#type' => 'submit', ...
0
votes
1answer
22 views

Custom form handler not found in Drupal 8 (call_user_func_array error)

Currently on Drupal 8 beta 7. I'm trying to build a form with separate "submit" and "cancel" buttons. The cancel button has some separate cleanup work to do. I've tried to follow the documentation ...
0
votes
0answers
5 views

Submit function for custom module executes on every page except the user edit page

I wrote a custom module that creates a form and displays it in a block. The form only contains one button that performs an event when you click on it. It works great on every page, but when I put it ...
0
votes
2answers
26 views

Clean URLs work*, but not when I submit forms?

I have a local dev site configured (Ubuntu 14.04.1 LTS), and I copied a production website to play with there. Everything appears to work great. Clean URLs seem to work and I can navigate the site. ...
0
votes
1answer
4 views

views_row_selector module - capturing a form submission

I am using the views_row_selector module to add checkboxes to a table created in Views The hook_menu $item looks like this $items['admin/structure/account'] = array( 'title' => 'Accounts', ...
0
votes
0answers
4 views

Drupal Contact Form Emails Going To Some Emails But Not To Email Containing Domain Name

I know this has been talked about in other submissions, but I have not actually seen a solution to this. I have my Drupal email contact form that sends to multiple email addresses. All of the ...
0
votes
1answer
17 views

How to create add and edit pages for content types beside to Administration

In my drupal installation (Drupal 7) I have various users. What I want to do is, I want to enable somehow my users to be able to create content their own, without using the administration page. Lets ...
0
votes
1answer
60 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
19 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 ...
0
votes
1answer
35 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
17 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
61 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 ...
1
vote
3answers
107 views

Creating webform submissions programatically in order to use with SimpleTest

I'm trying to build out a SimpleTest to test out functionality on submitted webforms. I need to simulate loading a drupal webform node, applying fake data, and submitting the form (triggering a ...
0
votes
0answers
30 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
44 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
34 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
30 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
75 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
69 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
65 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
24 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
0answers
22 views

Textfields are not populated with user inputs after validation fails [duplicate]

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
49 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_ ...
-2
votes
1answer
83 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
10 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
41 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
47 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
10 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
23 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
37 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
77 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
36 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
49 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
107 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
78 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
79 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
64 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
70 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
38 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
30 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 ...