form-api
Drupal 6 to Drupal 7 migration form API php code snippet
I\'m trying to figure out what is wrong with this bit of Drupal 6 php code i\'m trying to get working in Drupal 7:[详细]
2023-04-12 13:47 分类:问答Drupal 7 retain file upload
I have a file upload form how can I retain this file when there are other validation errors so that the user doesn\'t have to upload the file again?[详细]
2023-04-12 06:23 分类:问答check field and redirection on a multistep webform - Drupal
I have set up a multistep webform on a Drupal website and I am trying to check a field and stay on the first page of the webform if the field doesn\'t meet the conditions. On the first step of the web[详细]
2023-03-24 13:20 分类:问答Ajax loading in Drupal using Ctools breaks
I\'m working on a custom module using CTools ajax and form. I tried to combine this example with the one from here. It goes like this: a user chooses from one of the radio buttons, on submit the map o[详细]
2023-02-18 13:32 分类:问答Drupal 7: Best Practice for a Dynamic Select List in Drupal 7
What is the best practice for a dynamic select list in Drupal 7? Create a Field with 开发者_开发知识库dummy options via the UI and overriding the options with hook_form_FORM_ID_alter[详细]
2023-02-14 17:12 分类:问答Wysiwyg mo editor for Drupal 5 forms (Form API): How to enable it for several textareas?
I am trying to create a form with the Drupal 5 form API that has two textareas, both of which should have have a wysiwyg editor enabled to allow HTML formatted input. However, only the second textarea[详细]
2023-02-08 10:53 分类:问答Why can't I move a field into a fieldset in a Drupal form - fails to pick up current value
I have a node form in Drupal 7, in order to simplify it for the user I want to break it up into sections using the vertical tabs feature.[详细]
2023-02-08 08:48 分类:问答Global hotkeys for WindowsFormApplications
How can I execute a function, when user clicks specific button? E.g. when I want to count, how many times user w开发者_开发技巧ill hit \'A\' button during writing (or Ctrl+C combination).[详细]
2023-01-28 15:21 分类:问答Drupal Form API - populate fields from Database
Im looking to populate drupals form api fields with records from the database. with: function mytopfive() {[详细]
2023-01-24 09:00 分类:问答Drupal Form API: Create Form Elements based on the database values (Dynamic Form Creation)
I am creating a form where i have to populate \"X\" form elements (text-fields to be specific) based on values in the database (X number of elements, properties of each element etc). Is there a way to[详细]
2023-01-21 19:16 分类:问答