First of all, let me thank you guys for an EXCELLENT component. So much better than anything else for Joomla or Drupal.
I have created 2 forms with the ChronoForm. Both these forms were working quite smoothly and the update to the database was functioning well. However, each of these forms is compiling survey information which must be unique to the user and not the form id (cf_id). So in phpMyAdmin I changed the Primary key from the cf_id to a new field (j_id which is a hidden field within the form taking its value from Joomla) to allow for an automatic replace or update. Also I have added another hidden field to add an arbitrary value for cf_id (it is no longer auto increment). Here is the code within the body of the form:
<?php
$user =& JFactory::getUser();
$usrId = $user->get( 'id' );
echo '<input type="hidden" name="j_id" value="' . $usrId . '" />';
echo '<input type="hidden" name="cf_id" value=0 />';
?>
I have created 2 forms with the ChronoForm. Both these forms were working quite smoothly and the update to the database was functioning well. However, each of these forms is compiling survey information which must be unique to the user and not the form id (cf_id). So in phpMyAdmin I changed the Primary key from the cf_id to a new field (j_id which is a hidden field within the form taking its value from Joomla) to allow for an automatic replace or update. Also I have added another hidden field to add an arbitrary value for cf_id (it is no longer auto increment). Here is the code within the body of the form:
<?php
$user =& JFactory::getUser();
$usrId = $user->get( 'id' );
echo '<input type="hidden" name="j_id" value="' . $usrId . '" />';
echo '<input type="hidden" name="cf_id" value=0 />';
?>