Webform - entering text issues in Firefox
Posted by Seph on April 19, 2011 at 11:54pm
As some of you know, I was having some issues with not being able to input text in my webform in Firefox. After some digging, I discovered that for some reason the border-box, box sizing in my contrib theme's base css file was conflicting with the arrange fields module. I am using Drupal 7 with Corolla as my theme.
Read moreInput values into drupal form programmatically
Posted by sagarmitra on December 17, 2010 at 5:30am
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);
}
?>