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();
Drupal 7 Managed File Form API
For managed_file form API the Properties: #prefix and #suffix does not work.
Read moreHow to use #theme for a form element in D6
How to change the look and feel of submit button using form APIs ?
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:
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);
}
?>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!
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!
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!
Upload file trong drupal như thế nào?
Mình viết 1 module node có field type là "file" để upload 1 image,
làm thế nào để check kích thước file, format, và lưu file vào thư mục "files"
Các bạn chỉ giúp newbie với.


