form-api Questions

2

I am working on a HP autonomy interwoven Teamsite DCT and I am trying to add jQuery Datepicker to a "selectDate" text element. Basically this text element is a part of a replicant container with a...
Brinton asked 7/3, 2014 at 10:28

2

I am trying to disable couple of fields and make them readonly via hook_page_alter(). I was able to do check if user is viewing the page edit section (the form edit) $page['content']['system_main'...
Trottier asked 23/3, 2011 at 0:3

2

What is the best practice for a dynamic select list in Drupal 7? Create a Field with dummy options via the UI and overriding the options with hook_form_FORM_ID_alter or Creating a dynamic sel...
Krakow asked 1/3, 2011 at 18:31

2

Solved

I have a file upload form how can I retain this file when there are other validation errors so that the user doesn't have to upload the file again? I tried this in my validation function but it d...
Niggardly asked 12/10, 2011 at 11:27

2

Solved

I'd like to upload multiple files using Form API. '#type' => 'file' provides upload only one file. $form['picture_upload'] = array( '#type' => 'file', '#title' => t(''), '#size' =&...
Veinlet asked 17/10, 2011 at 18:29

1

Solved

I am using drupal form api and using checkboxes. I am getting problem in default checked values with it. following is the code snippet... $result = db_query("SELECT nid, filepath FROM {content_typ...
Bionomics asked 10/2, 2011 at 8:3

3

Solved

CCK for Drupal has the handy feature of allowing a single CCK field to accept multiple values via a "add another item" button that results in an array of data in the node. I'm wondering if there's...
Buckler asked 2/12, 2009 at 23:12
1

© 2022 - 2024 — McMap. All rights reserved.