Forms are the primary method for obtaining and acting upon user input in Drupal.

learn more… | top users | synonyms (1)

0
votes
0answers
2 views

Replacing an object of the UserLoginForm class with one of my own class

Is it possible to replace an object of the UserLoginForm class with one of my own class implementing the ControllerInterface and FormInterface interfaces? What I want to do is replacing the login ...
-1
votes
0answers
11 views

how to add custom html input type in drupal forms?

I have to add the following code to my drupal form At the top. how can I achieve this? <ul class="tabs primary"> <li class="active"> ...
0
votes
0answers
22 views

ajax callback on form element checkboxes

I am having some troubles with ajax on form element checkboxes, in ajax callback form_state is without values and triggering element etc .. why is that? The form is called with drupal_get_form and ...
0
votes
0answers
6 views

How to detect parent optgroup

I have a select box that lists items as grouped, as per this posting: How to create optgroups from taxonomy terms? I want to attach some states detection so that when the user clicks any item from ...
2
votes
1answer
28 views

Split the node edit form into multiple pages (preferably using panels variants)

The task My goal is to split the node edit page with the main field forms staying on the default one (the add page itself or mynodeurl/edit), and some additional field forms on the other pages (e.g. ...
-5
votes
0answers
25 views

creating the form wizard without using ctools [on hold]

I came across the couple tutorials to create a form wizard using ctools. But i need to create a form wizard of 4 steps without the help of ctools in drupal 7. Is it possible ?
0
votes
1answer
21 views

“Notice undefined index” for an existing element in $form array

Basically This is my Array array( [product_id] => Array ( [#type] => hidden [#value] => 39 ) ) and I am trying to get the value ...
0
votes
1answer
15 views

Form value not submitting for a function called from ajax

I have created a form for creating some beaches. In that I have to give the value of continents,country ,name of beaches. Names of the countries and continent are stored in the taxonomy table. so if ...
-1
votes
0answers
19 views

how to create form in modal dialog? [duplicate]

How to create show form in dialog window? What is currently the best option? jquery modal form is very nice, but it seems that validation etc. is not supported. Ctools offer validation etc, but the ...
3
votes
1answer
52 views
+50

Seperate Payment Integeration For Selected plan type using Drupal Form with Paypal API

[Edited Question] I have used a normal class as an api and in that i am passing all the parameters to paypal and i am getting success. Only thing i am missing is that amount is not being deducted ...
0
votes
1answer
20 views

Getting form submitted date

I have a date picker in my form, when user hits submit button, the date which entered in date field is displaying in list view. But I want to display the date the form submitted also. Any help ...
0
votes
1answer
30 views

Drupal 6 Form API-passing on the NID in a hidden field?

So, here's my issue. I have a university course page. I want to display a list of students currently weight listed for the course, and give the option for the student to add their name to the weight ...
1
vote
1answer
21 views

Drupal block-level form submit URL?

I have a form: function form_search_products($form, &$form_state) { $form = array(); $form['keyword'] = array( '#type' => 'textfield', '#description' => 'Enter keywords (ie: ...
0
votes
1answer
19 views

text field with 3 input values and 2 of them disabled/uneditable with a default value

So, I'm trying to add a phone number field to user accounts. I want the user to be able to see 3 input fields for the phone number, where the first two fields would be the country code and extension, ...
0
votes
1answer
24 views

Is it possible to replace html outside form with ajax?

Is it possible to replace a <div> outside form with ajax on select element? I am having some difficulties, when Drupal generates new content it wraps my HTML with <div> and I don't know ...

1 2 3 4 5 83
15 30 50 per page