drupal-forms Questions
9
Solved
We have certain users in our member list that have a role "vendor" attached to them. All such members are to be redirected to a certain page upon login. How can this be accomplished?
Crux asked 7/8, 2010 at 8:41
6
Solved
In Drupal 7 form API - How do I create an input of type "button" (not "submit")?
I am trying to have a button which is not a "submit" type of button, but rather a normal "button" type, using the forms api of drupal 7, but I can't seem to get it.
I've tried many things, like se...
Meredeth asked 3/1, 2011 at 13:57
6
Solved
I created a form in Drupal 7 and want to use AJAX. I added this to the submit button array:
"#ajax" => array(
"callback" => "my_callback",
"wrapper" => "details-container",
"effect" =&...
Eliaseliason asked 26/10, 2011 at 13:11
3
Solved
I'm building a form module. One of the early fields is a set of radio buttons. By default the first button is selected. Next I'll have a series of select boxes. One needs to be visible, the others ...
Staphylorrhaphy asked 5/10, 2012 at 19:42
4
Solved
I try to print a drupal 'select option' element in a form .I think drupal_render not applying #default_value.every thing is ok except #default_value not applied.
where is the problem?anybody know h...
Team asked 19/7, 2012 at 5:22
2
Solved
is it possible to add a simple html link in the label/title of a checkbox? I tried the following code:
<?php
$form['legal']['#type'] = 'checkbox';
$form['legal']['#required'] = TRUE;
$form['leg...
Unwieldy asked 1/11, 2012 at 18:40
4
Solved
I am creating a credit card form in Drupal. I need a date select field where users can select their credit card expiry date, which consists of only Month and Year -No Day.
The Drupal form #type 'd...
Endsley asked 8/3, 2011 at 7:36
1
Solved
OK, I finally figured out how to add (or edit) form controls through the form API in Drupal.
But now, I would like to add text to a form. Not a <textarea>, and not a <textfield>;...
Scallion asked 6/12, 2011 at 19:8
1
Solved
I've made a custom Drupal module. Inside which I've created a block and a form. How can I make the form appear in the block content? Cheers.
Block Code:
function module_block($op = 'list', $delta...
Nazareth asked 12/1, 2011 at 23:37
1
© 2022 - 2024 — McMap. All rights reserved.