This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How to create a form with dynamic html elements. ?

Hi all
I am very new to drupal.

i have gone through the vast drupal forum, and managed to create a basic form.
Thanks to the well documented tutorial available in :
http://drupal.org/node/71954

My next step is to create a dynamic form.
I have seen two approaches to implement the same.
1) Using javacript
I am trying to create a form in drupal having dynamic HTML elements
some thing similar to :
http://www.formassembly.com/wForms/v2.0/documentation/examples/repeat.html

I managed to at least get the front end working using wforms in drupal 4.76.
BUT I found that wforms module is deprecated for drupal 5 and will not be available anymore.

2) using the drupal form functionality.
I have gone throught the tutorial for creating dynamic forms in drupal available at.
http://drupal.org/node/101707
my requirements match the third scenario .

The Form That Builds Itself, a page where some options (clicking 'add more choices' when setting up a poll, for example) add more fields until the user chooses to submit the 'finished product.'

I have read the article, but unable to implement the third scenario. Now i know there is no short cut to hard work I need to read and understand more stuff.

But at this point i am a bit confused.

Image如何卸载呢?

我想卸载Image 等稳定版出来在安装,可是我删除模块后所有的图片附件包括sladeshow等等的都不能够访问了。如何完全卸载这个image模块呢?

Video Module not working from other computers

Hey Everyone,

I am having a problem using the video module. The videos i uploaded play fine on my computer (mac osx) on quicktime, but when I check from any other computers, including ones that i know have quicktime on them, all that shows up when i click on the 'play' button is a blank page with a link back to "home" on the top.

I am sure this might be on some post somewhere but was not able to find it.

I am wondering if I should use flash video player-- can someone tell me what I need to do to transfer my video files to flash video files?

thanks

Values from textarea as options for a select box

On my module admin page, I have a textarea. File paths are entered into, one per line. How can I use these lines as options for a select box on my node/add page? I'm assuming I have to turn the values into an associative array and pass them through to the node/add form by way of variable_get, but I'm not having much luck.

thanks,

Doug Gough

Module Subcriptions delete HTML

/*
 * Object formatter
 */
function subscription_simpleformat($objects, $channel) {
    $global_header = 
      t("There is new content:") ."\n\n". 
      "";
    $group_header = 
      "============================================\n". 
      " ". t("New") ." %type%\n". 
      "============================================\n";
    $dump = $global_header;
    foreach ($objects as $type => $group) {
      $dump .= preg_replace("/%type%/", $type, $group_header);
      foreach ($group as $content) {

Using module_invoke_all(form_alter, $form_id, $form) in a custom module

How do I use module_invoke_all(form_alter, $form_id, $form) to return a form that is comepletely built, along with all of the changes?

Dave

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions