Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used:Mozilla
- cforms version:Latest
- Your Wordpress version:2.8.3
[desc]: I have created a Dynamic Form using CformsII. I want to make this into a multipart form. So basically lets say i have 2 forms. Form A, Form B. Form A is dynamically created ) when submitted i want this form to be directed to Form B. How do i get this working.
Here are the issues i faced.
a> The Form which is refrenced by the dynamic form was made multipart, with suppress admin email option checked and start form selcted and pointed to FormB
b.) The Form B was also made multipart, supress admin email disabled, end form selected.
When i do this in the first doem once i click continue… i get the thanks message and no email gets sent.
Also should i be using insert_custom_cform($fields,'2'); or insert_custom_cform($fields,'2,3'); i.e. 2 and 3 representing Form A & Form B
Heres the code i am using to create dynamic form
<?php
$title_array=array();
$desc_array=array();
$my_query = new WP_Query('page_id='.$post->ID);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<?php $total = getGroupDuplicates('title');
?>
<?php for($i = 0; $i < $total; $i++):?>
<?php echo "<div class='balloonstyle' id='balloon$i'>";
echo "<h2><a href='#'>" .get('title',$i,1). "</a></h2>";
echo get('description',$i,1);
$mytitle = get('title',$i,1);
$mydescp = get('description',$i,1);
$title_array[]=$mytitle;
$desc_array[]=$mydescp;
echo "</div>"; ?>
<?php endfor;?>
<?php endwhile; ?>
<?php
$fields = array();
for($i=0;$i<count($title_array);$i++)
{
$array.='#<a href="abc.php" rel="balloon'.$i.'">'.$title_array[$i].'</a>|'.get('title',$i,1);
}
$formdata = array(
array("<a href='#'>Your Name</a>","textfield",0,1,0,1,0),
array("Select Color $array","checkboxgroup",0,0,0,0,0),
array("Your Message","textarea",0,0,0,0,0)
);
$i=0;
foreach ( $formdata as $field ) {
$fields['label'][$i] = $field[0];
$fields['type'][$i] = $field[1];
$fields['isdisabled'][$i] = $field[2];
$fields['isreq'][$i] = $field[3];
$fields['isemail'][$i] = $field[4];
$fields['isclear'][$i] = $field[5];
$fields['isreadonly'][$i++] = $field[6];
}
insert_custom_cform($fields,'2');?>
As you can see i am creating checbox group dynamically and adding hints to it. I hope someone can help me with this. Thanks
_