form api

dogix3's picture

Multiples field_collection en un mismo form?

Hola a todos!

Necesito ayuda con el siguiente caso, resulta lo siguiente:

Tengo una ventana multi-step en la cual en el primer paso inserto números de serie y el plazo de los mismas, esto lo hago mediante un field_collection el cual obtengo de un tipo de contenido (deadline_table) que importo al formulario haciendo uso del siguiente codigo

$node->type = 'deadline_table';
//Fieldset de las series y plazos
$form['add_series']['campos_de_coleccion'] = array();

Read more
RavindraSingh's picture

Drupal 7 Managed File Form API

For managed_file form API the Properties: #prefix and #suffix does not work.

Read more
mabraham's picture

Drupal Developer - Full Time - DC Metro | TRP

Employment type: 
Full time
Telecommute: 
Not allowed

Based out of the DC Metro area, we are seeking a Drupal Developer for a full time role. You will collaborate with customers to design and implement web applications and install and configure Drupal and MySQL in a Linux environment for high-performance web sites. Additionally, you will be experienced with enterprise scale Drupal implementations and web application design and architecture, as well as, designing and delivering web services. You will be creative and flexible, possess high energy, and a strong work ethic.

Read more
govinda_roul's picture

How to use #theme for a form element in D6

govinda_roul's picture

How to change the look and feel of submit button using form APIs ?

iliya's picture

Modifying individual form elements html markup with form api

Hello! I wonder if it is possible to specify additional properties to special form elements in form api (see forms_api_reference.html)?
for example recently i had to theme a form button. i needed a regular button to become an image.
at first i've changed button type from 'submit' to 'image_button' and though image_button type had #src property it didn't have #align property which is required for positioning the image. so i had to toss out the idea of changing a button type and render the whole button on my own like this:

Read more
sagarmitra's picture

Input values into drupal form programmatically

How can i populate the form fields programmatically
Let me illustrate, consider the following example

<?php

function form(){
return
drupal_get_form('myform');
}
function
myform($form_state){
   
$form['name'] = array(
  
'#type' => 'textfield',
'$title' => 'Name: ',
   );
$form['submit'] = array(
'#type' => 'submit',
   
'#value' => 'Save',
);
return
$form;
}
function
myform_submit($form,&$form_state){
   
$form_id = 'myform';
$form_state['values']['name'] = 'Hello World';
  
drupal_execute($form_id,$form_state);
}
?>
Read more
huydvx's picture

Drupal6x: Want help while create form using Form API

Hi all,
I'm having this problem, and want everyone can help for me, the problem following:
I created form using Form API, and i want while calling form then assign value to text filed(because value of text file always change).
Thank all!

Read more
huydvx's picture

Drupal6x: Problem while create form using Form API

Hi all,
I'm having this problem, and want everyone can help for me, the problem following:
I created form using Form API, and i want while calling form then assign value to text filed(because value of text file always change).
Thank all!

Read more
huydvx's picture

Create form using Form API

Hi all,
I'm having this problem, and want everyone can help for me, the problem following:
I created form using Form API, and i want while calling form then assign value to text filed(because value of text file always change).
Thank all!

Read more
Subscribe with RSS Syndicate content