How to display input value as label

by user77598   Last Updated July 17, 2017 10:07 AM

In drupal, I am using custom forms module for handling forms.Now i am using type as textfield to show the data in textbox. Is there any way to display the input value as label.Here is my code:

     $form['group_type'] = array(
      '#type' => 'textfield',
      '#title' => t('Name'),
      '#default_value' => ($get_data) ? $get_data->name: ''    
    );
Tags : forms


Related Questions




Reuse form from another module in multistep form

Updated May 21, 2015 22:03 PM