I have created a customized form with Form API by Drupal 8. I need to use the data obtained through the form to run a research in the database and pr ...
I have created a customized form with Form API by Drupal 8. I need to use the data obtained through the form to run a research in the database and pr ...
I'm using this in node add form alter to hide field 'field_obyavlenie_ploschad_uch': But if user enter any value in this field (before the field wa ...
I'm trying to implement a hook_form_alter method to modify the behaviour of one field through ajax callback in the form display of node. The idea is ...
I have a custom module that is successfully displaying query results when a user navigates to a particular page, by doing a query that grabs 50 record ...
I have a form that creates multiple entries in a Fieldset depending on a counting variable $form_state['num_entries']. It contains a Textfield for a r ...
I created a form inside a custom module, in a drupal 7 project, and I need to insert the values into a custom content type called 'players' Here is w ...
I need to render a custom form which is created using Drupal\Core\Form\FormBase and Drupal\Core\Form\FormStateInterface through a controller in custom ...
I'm new to Drupal. I created a custom module and made it to have link task on node type (likes View/Edit/Delete tab). It works fine and appear on ever ...
I try to override a contribution module form by adding a second button. The first button is saving the entry and redirects on the page with the entry ...
How to design Drupal forms without coding a lot? ...
I need to create a form which depends on the results of a view. I can generate it within the view and/or create a view template in order to do this... ...
So I have been using drupal 7 to develop a website. I wanted to override the default login and register forms. I was able to successfully add custom c ...
I have added a custom button to a form: Then in the callback I want to add or remove entities from an entity reference field on the form. This woul ...
Is there a solution to get a value to a thank-you page that is not GET? For a marketing and analytical issue, I need to retrieve the form_id on the t ...
I have several forms for a single content type in Drupal 7. The purpose of this is to initiate different workflows when the user submits the form, dep ...
I'm trying to wrap checkboxes element in details by doing something like this: but on submit, I get constantly back $values = ['de'=>0, 'en'=> ...
I looked around and could not find the solution as to how to add a custom class to the form element/elements or the <form> tag for that matter. ...
I'm trying to create/add textfields dynamically in drupal depending on the selected option for a select list. if Jack is selected, then create textfi ...
I'm very new drupal forms but have managed to set up a drupal_mail function that upon submit sends an email to the desired location with the correct $ ...
I am trying to modify the form action of the search block in my Drupal 8 project. The search block is placed in the Primary menu area. I added the fol ...