Timeline for Is it possible to change the field type in a node form afterwards?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2021 at 8:54 | comment | added | Suraj | @leymannx Is this the same goes to drupal8 as well? I'm trying to convert select type field to 'textfield' by using $form['field_control_number'][LANGUAGE_NONE][0]['value']['#type'] = 'textfield'; but not working. Any idea on what is missing here? | |
Oct 7, 2018 at 21:40 | comment | added | Mehrdad201 | I used you sample but in setting default_value, I have problem. although I set #default_value but there is no item selected in rendered field. | |
May 8, 2018 at 2:52 | comment | added | geerlingguy |
Ah, that pesky value ; I am always perplexed when I work with Form API as to which level attributes and other options should be changed on, even after a decade of Drupal development :P
|
|
Jun 27, 2014 at 15:36 | vote | accept | leymannx | ||
Apr 28, 2014 at 13:24 | history | answered | leymannx | CC BY-SA 3.0 |