Bienvenido, Invitado
Recordarme

TEMA:

I Messed it Up! 8 meses 2 semanas antes #256041

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

could you please tell what exactly you added in the form?
Because I can't find it error in the code, and where I should add }, this confuse me.

Regards,
Tihana

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

I Messed it Up! 8 meses 2 semanas antes #256042

  • 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
A bunch of stuff. Maybe 50 or more elements. The only thing I changed in the scripts was:

function ff_base_show_init()
{
setInterval(calc, 500);

Would the "}" be in the element Name or properties? I will start looking if you want me to help

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

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

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

I think so, there is the problem in this script.
But when I go to your form->Advanced->More options->Script->Ini script->it is set to None.

Am I miss something?

Also, could you please post here the whole code from Init script?

Regards,
Tihana

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

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

  • 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
Look at the end of the script. there are 2 }}s

/* Create Catalog Information Field */

function ff_base_show_init()
{
setInterval(calc, 500);


} // ff_comb_init

function calc() {
ff_getElementByName("catalogueinformation").value=ff_getElementByName("full_dog_name").value+" " +ff_getElementByName("registration_number").value+" " +ff_getElementByName("date_of_birth").value+" BREEDER: " +ff_getElementByName("breeder_name").value+" OWNER: " +ff_getElementByName("owner_name").value+" " +ff_getElementByName("owner_city").value+", " +ff_getElementByName("owner_state").value+" PHONE: " +ff_getElementByName("owner_phone").value+" SIRE: " +ff_getElementByName("sire_name").value+" DAM: " +ff_getElementByName("dam_name").value;
}

function ff_fees_action(element, action){
ff_getElementByName("entryfees").value = element.value;
}

/* Calculate Fees */


} // ff_base_show_init

function calc() {
var payfees1=ff_getElementByName('pay_fees_1').value;
var payfees2=ff_getElementByName('pay_fees_2').value;
var payfees3=ff_getElementByName('pay_fees_3').value;
var payfees4=ff_getElementByName('pay_fees_4').value;
var payfees5=ff_getElementByName('pay_fees_5').value;
var payfees6=ff_getElementByName('pay_fees_6').value;
if(payfees1 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value) +
Number(ff_getElementByName('pay_fees_7').value) +
Number(ff_getElementByName('pay_fees_8').value) +
Number(ff_getElementByName('pay_fees_9').value) +
Number(ff_getElementByName('pay_fees_10').value) +
Number(ff_getElementByName('pay_fees_11').value) +
Number(ff_getElementByName('pay_fees_12').value) +
Number(ff_getElementByName('pay_fees_13').value) +
Number(ff_getElementByName('pay_fees_14').value) +
Number(ff_getElementByName('pay_fees_15').value) +
Number(ff_getElementByName('pay_fees_16').value) +
Number(ff_getElementByName('pay_fees_17').value) +
Number(ff_getElementByName('pay_fees_18').value) +
Number(ff_getElementByName('pay_fees_19').value);
}
else if(payfees2 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees3 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees4 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees5 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees6 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
}

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

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

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

please use this code instead of this which you posted in message above:
function ff_base_show_init()
{
setInterval(calc, 500);
setInterval(calc1, 500);


} // ff_base_show_init

function calc() {
ff_getElementByName("catalogueinformation").value=ff_getElementByName("full_dog_name").value+" " +ff_getElementByName("registration_number").value+" " +ff_getElementByName("date_of_birth").value+" BREEDER: " +ff_getElementByName("breeder_name").value+" OWNER: " +ff_getElementByName("owner_name").value+" " +ff_getElementByName("owner_city").value+", " +ff_getElementByName("owner_state").value+" PHONE: " +ff_getElementByName("owner_phone").value+" SIRE: " +ff_getElementByName("sire_name").value+" DAM: " +ff_getElementByName("dam_name").value;
}


function calc1() {
var payfees1=ff_getElementByName('pay_fees_1').value;
var payfees2=ff_getElementByName('pay_fees_2').value;
var payfees3=ff_getElementByName('pay_fees_3').value;
var payfees4=ff_getElementByName('pay_fees_4').value;
var payfees5=ff_getElementByName('pay_fees_5').value;
var payfees6=ff_getElementByName('pay_fees_6').value;
if(payfees1 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value) +
Number(ff_getElementByName('pay_fees_7').value) +
Number(ff_getElementByName('pay_fees_8').value) +
Number(ff_getElementByName('pay_fees_9').value) +
Number(ff_getElementByName('pay_fees_10').value) +
Number(ff_getElementByName('pay_fees_11').value) +
Number(ff_getElementByName('pay_fees_12').value) +
Number(ff_getElementByName('pay_fees_13').value) +
Number(ff_getElementByName('pay_fees_14').value) +
Number(ff_getElementByName('pay_fees_15').value) +
Number(ff_getElementByName('pay_fees_16').value) +
Number(ff_getElementByName('pay_fees_17').value) +
Number(ff_getElementByName('pay_fees_18').value) +
Number(ff_getElementByName('pay_fees_19').value);
}
else if(payfees2 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees3 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees4 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees5 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else if(payfees6 > 0) {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('convenience_fee').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
else {
ff_getElementByName('total_fees').value=Number(ff_getElementByName('pay_fees_1').value) +
Number(ff_getElementByName('pay_fees_2').value) +
Number(ff_getElementByName('pay_fees_3').value) +
Number(ff_getElementByName('pay_fees_4').value) +
Number(ff_getElementByName('pay_fees_5').value) +
Number(ff_getElementByName('pay_fees_6').value);
}
}

Regards,
Tihana

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

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

  • 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
Yea it started working.

Now for the new elements.



Thanks T!
Adjuntos:

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

Tiempo de carga de la página: 0.062 segundos