deleted 4 characters in body
Source Link

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set theOnly membershipoperate joinon formsCiviCRM toContribution recurringForms
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set the membership join forms to recurring
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Only operate on CiviCRM Contribution Forms
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

deleted 61 characters in body
Source Link

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. The default price text is always bolded, just not the price. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set the membership join forms to recurring
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. The default price text is always bolded, just not the price. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set the membership join forms to recurring
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set the membership join forms to recurring
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael

Source Link

It looks like I have the Drupal module firing the needed behavior into the CiviCRM Contribution page form initially... however once the page completes loading, the check box is flipped back to UNCHECKED. Not funny! >:-|

Also, at the same time the check box gets cleared, the default price option also becomes bolded. The default price text is always bolded, just not the price. Once the default price gets bolded, also the "Please renew my membership automatically." check box gets unchecked.

Here is the form while the page is still loading into Mozilla Firefox:

enter image description here

And here is the form when the page finishes loading:

enter image description here

So, this is the only CiviCRM customization on the site, what else could be adjusting the contribution form?

<?php

/**
 * buildForm hook
 */
function civicrm_cir_civicrm_buildForm( $formName, &$form )
{
  // Pre-set the membership join forms to recurring
  if ( $formName == 'CRM_Contribute_Form_Contribution_Main' )
  {
    // Test for specific contribution forms by CiviCRM form ID
    if ($form->getVar( '_id' ) == 15 ||  // Yearly CC
        $form->getVar( '_id' ) == 16 ||  // Yearly PP
        $form->getVar( '_id' ) == 13 ||  // Monthly CC
        $form->getVar( '_id' ) == 14 ||  // Monthly PP
        $form->getVar( '_id' ) == 8  )   // Weekly CC
    {
      // Set the check box for recurring contribution
      $defaults['auto_renew'] = array('checked' => '1');
      $form->setDefaults( $defaults );
    }
  }
}

I am thankful,

Michael