Retrieves, populates, and processes a form.
0
votes
1answer
18 views
how to add newsletter subscription during registration?
Here what I want to do. I loaded a checkbox list of taxonomy term on the registration form. Also I have a check box for "subscribe newsletter". so the user can check the his favourit taxonomy and ...
0
votes
1answer
22 views
How to add a confirmation form after the user clicks “Save” on a node edit form?
On a site I'm building, a user can edit certain fields on a node that cause a chain reaction to happen (which I've implemented using hook_nodeapi's "update" op).
Since this chain reaction potentially ...
0
votes
1answer
28 views
Submit handler: Prevent other handlers from running in certain circumstances only
I'm creating a custom module which adds a submit handler to a form. The idea is that it checks whether a hidden "honeytrap" field has been filled in.
If the field has been filled in, a success ...
0
votes
1answer
45 views
When in admin overlay, submitting form over 400 times
I have built a very simple module which just implements a block with a custom form. When submitted, the content is emailed to me. I show this block on the dashboard, and without the admin overlay it ...
0
votes
1answer
38 views
Add an action to user register form
On registration I want to get the value of the user's email and forward them to a page that has an option to resend their activation email.
I have the page with the form they're forwarded to, but I ...
2
votes
2answers
64 views
Trying to Understand Where I am Going Wrong Modifying User Registration Form
I am working with Drupal as part of a student project. As background, I work professionally doing front end development and I've taught myself at least the basics of the back end.
Here's my problem, ...
2
votes
1answer
22 views
2 submits with same validation?
I am modifying user_pass so that it also has an option to resend a user's activation email.
if($form_id=='user_pass'){
$form['name']['#title'] = 'Email Address';
$form['actions']['submit'] = ...
0
votes
0answers
55 views
PHP to create text field with default content from PHP command?
We have a block containing the code:
<?php print token_replace('[current-page:url]'); ?>
which does most of what is needed, which is just to mirror the URL of a unique views page containing ...
2
votes
3answers
50 views
Using form_set_error in the submit handler
I have a multistep form and on each submit I send completed fields off to an external API which returns data about the next step of the form.
The problem is, if I use form_set_error in the submit ...
0
votes
0answers
23 views
Drupal Ajax Form Rebuild Error Related to Exposed Form Plugin
I am submiting an Ajax form request in Drupal... It sends an Ajax request once a select is selected. The form rebuild has an error it states that the variable $exposed_form_plugin is not an object. ...
0
votes
0answers
21 views
How do I call another page, and output the submitted values in the new page? [duplicate]
In a login form, I will enter the credentials; on submission, the user will be redirected to a new page with the details provided in the login form.
How can I achieve this in Drupal 6?
0
votes
1answer
17 views
Creating a Form Uploader?
Sorry if this an extremely newby question but I am a beginner and still trying to learn how to navigate through the site. Anyway, I am trying to create a form uploader. For example, I want someone ...
3
votes
2answers
72 views
Multiple submit buttons: Which one was pressed?
This may be a duplicate of the following: Multiple form submit, but I am unable to figure out how the answer applies to my situation. So here is my go at asking this (I admit) quite similar question:
...
1
vote
1answer
35 views
Redirection to home page
I am working on a Drupal site. I have put a "Create an account" block on one of my content pages. After the form is submitted the user is redirected to the home page. I want to reload the same page on ...
0
votes
0answers
21 views
Using foreach() to get values from a checkbox form [closed]
I created a form on my Drupal 6 site where users have the option to choose multiple topics from a checkbox list. Here is what I am doing to try and output those values:
$i = 0;
foreach ...