Bienvenido, Invitado
Recordarme

TEMA:

I Messed it Up! 8 meses 1 semana antes #256048

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 7785
  • Karma: 3
  • Gracias recibidas: 549
Hi,

For this I need your help because your form looks different for me, and there is no code in Init script.

Please add this in Select Show Class->reg_show_class_day_1->Advanced->Action script->check Custom -> check Change:

function ff_reg_show_class_day_1_action(element, action)
{
    switch (action) {
        case 'change':
if (element.value=='1 Puppy 6-9 Mos Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_1').value;
ff_getElementByName('reg_classes_fee_1').value=ff_getElementByName('reg_fee_amount_1').value;
ff_getElementByName('reg_fees_day_1').value=ff_getElementByName('reg_fee_amount_1').value;
ff_getElementByName('convenience_fees_1').value=1;

}
if(element.value=='2 Puppy 9-12 Mos Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_2').value;

}
 if(element.value=='3 12-18 Mos Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_3').value;

}
 if(element.value=='4 Novice Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_4').value;

}
 if(element.value=='5 AOH Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_5').value;

}
 if(element.value=='6 Bred-by-Exhibitor Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_6').value;

}
 if(element.value=='7 American-Bred Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_7').value;

}
 if(element.value=='8 Open Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_8').value;

}
 if(element.value=='9 Veterans Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_9').value;

}
if(element.value=='10 Puppy 6-9 Mos Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_10').value;

}
if(element.value=='11 Puppy 9-12 Mos Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_11').value;

}
if(element.value=='12 12-18 Mos Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_12').value;

}
if(element.value=='13 Novice Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_13').value;

}
if(element.value=='14 AOH Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_14').value;
ff_getElementByName('reg

}
if(element.value=='15 Bred-by-Exhibitor Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_15').value;

}
if(element.value=='16 American-Bred Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_16').value;

}
if(element.value=='17 Open Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_17').value;

}
if(element.value=='18 Veterans Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_18').value;

}
if(element.value=='98 Best of Breed Dogs') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_98').value;

}
if(element.value=='99 Best of Breed Bitches') {
ff_getElementByName('pay_fees_1').value=ff_getElementByName('reg_fee_amount_99').value;

}
 if (element.value=='None') {
ff_getElementByName('pay_fees_1').value=0;
}
            break;
        default:;
    } // switch
} // ff_trial_class_event_1_action

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

I Messed it Up! 8 meses 1 semana antes #256072

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 1214
  • Karma: 1
  • Gracias recibidas: 9
the code is already there. I deleted it and replaced with your code.

Something is really wrong here.

Here is the link to the form.

dogshowsos.com/administrator/index.php?o...me=base_show&form=16

Can you send the link to the form you are looking at?

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

I Messed it Up! 8 meses 1 semana antes #256073

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 7785
  • Karma: 3
  • Gracias recibidas: 549
Hi,

this is correct form, now I can see Init script.

I will investigate this better.
Please see if there is any code in actionscript in Select Show Classes for all events (I only see the code for event 1, you too?)

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

I Messed it Up! 8 meses 1 semana antes #256074

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 1214
  • Karma: 1
  • Gracias recibidas: 9
Correct. Only the first one.

I think the first was as far as we got but not sure.

B

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

I Messed it Up! 8 meses 1 semana antes #256076

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 7785
  • Karma: 3
  • Gracias recibidas: 549
Hi,

yep, but I see this error:
Uncaught SyntaxError: Invalid or unexpected token
So I am looking for where this is, but I'm not very lucky, I reviewed the whole form :(

I'll repeat in case I missed anything

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

I Messed it Up! 8 meses 1 semana antes #256078

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 1214
  • Karma: 1
  • Gracias recibidas: 9
What can I do to help?

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Tiempo de carga de la página: 0.209 segundos