Form submission is the operation for which the data user input are going to be processed.
0
votes
1answer
15 views
Print the query results inside the submit function
I have a query wherein it fetches data from the database, a simple SELECT query which is processed when a certain submit button is clicked. What I want to achieve is to get the results of that query ...
1
vote
1answer
32 views
Reusing drupal forms in a profile installation?
I've setup a custom installation profile, and of my installation steps is setting up Google Analytics. I've downloaded the Google Analytics module and enabled it in my site profile.
What I'm doing ...
1
vote
1answer
34 views
The curious case of a Drupal Button
The code below is used to get the word count of a field (field_body) using ajax callback. It works great and everything functions as it should, well almost.
For some reason, the click of a button is ...
0
votes
0answers
10 views
How to get Entityform to remember values from last submission
Is there a way to do this? The Remember Values module does not work with Entityforms. Since users will be submitting lots of data, would like for some field values to be remembered from last ...
0
votes
2answers
32 views
drupal_form_submit() does not update(edit) the node?
$fs has following data
$fs = Array
(
[values] => Array
(
[field_1] => Array
(
[und] => Array
(
...
0
votes
2answers
26 views
entityform submit handler with preview
I have a simple Entity Form and have added a custom submit handler:
$form['actions']['submit']['#submit'] = array('custom_submit','entityform_edit_form_submit');
That works very well. The problem ...
0
votes
1answer
34 views
What are the alternatives for storing client side encrypted data?
I want to store client side encrypted data in Drupal 7, so that it is encrypted on the client end, and stored and transmitted in encrypted form. The password is never transmitted or stored on the ...
0
votes
1answer
47 views
Creating a News Blog in Drupal [duplicate]
Can anybody help me with this, any help is appreciated.
I want to create a news blog where any anonymous user can put the news post, but for posting news article,
the user must provide their valid ...
1
vote
0answers
34 views
“Valid date is required for date_1” error while using drupal_form_submit()
Field : field_date_1
Type : Date
Widget : Pop-up calendar
The settings for date field is as shown in 2 images
I get the values of a form_state into the $source_node and move that to $fs ...
0
votes
0answers
23 views
file unmanaged save upload
I'm moving some existing functionality into a new Drupal site.
Files are uploaded via posted form
Their file names are prefixes with UID
They are then moved to temp holding directory
A cron job on ...
3
votes
2answers
64 views
How to abort the ajax request and redirect in the ajax callback of form element
I want to redirect the page in the ajax callback function, and nothing (like "header", "drupal_goto" etc.) works for redirect in the ajax callback function.
0
votes
0answers
41 views
dynamic form fields with ajax
I would like to dynamically add/remove form fields, based on selected checkboxes. Each checkbox has its own form field. It works perfectly for one new field, but when second checkbox is selected, ...
0
votes
1answer
17 views
Apply a dynamic string to a field before validation
I am attempting to set the "title" value of a content type before it becomes "required" . So what happens is the title field becomes hidden based on user name, after filling in the "first name" and ...
1
vote
2answers
69 views
How to display results of FormAPI form submitted in same block, minus the button(s) used to submit
I have a custom module that I have created to display 3 different images with a 'vote' beneath each image. The idea is to have the viewer vote on the one they like and it gets ranked against the other ...
0
votes
2answers
77 views
Getting the value of a checkbox in form api
I'm creating a form using Drupal's form API. This form includes about 50 or so checkboxes that I'm creating using the type 'checkbox'. The checkboxes are grouped using several fieldset elements. ...