How can I put some inline fields for instance for address CITY, STREET, ZIP?

Is it possible with hook form?

could some one to provide an example or to give me an hint please?

Thanks a lot

luca

Comments

budda’s picture

Use prefix and sufix markup around a form element to put them in a inline-container span.

--
Ixis (UK) providing Drupal consultancy and Drupal theme design.

lum12’s picture

Thanks Budda for help and this is a good suggestion for other purpose but not in this case becase if I put a prefix in the first field and suffix in the second, anyway every field is enveloped by its own

and so tehy cannot been put in line by the external span
  $form['registrazione']['attivita'] = array(
    '#type' => 'radios',
    '#title' => t('Attività svolta'),
    '#default_value' =>  variable_get('log', 0),
    '#options' => $options,
    '#description' => t('Tipologia di attività svolta'),
    '#prefix' => '<span class="container-inline">',
  );

  $form['registrazione']['codrec'] = array(
    '#type' => 'textfield',
    '#title' => t('cod.'),
    '#default_value' => $node->att_rec_cod,
    '#description' => t('codice rifiuto'),
    '#suffix' => '</span>',
  );

luca marletta