Bienvenido, Invitado
Recordarme

TEMA:

Problemas en Manage Scripts 6 meses 1 semana antes #272017

  • Avatar de sciencemkt Autor del tema
  • sciencemkt
  • Fuera de línea
  • Expert Breezer
  • Expert Breezer
  • Science applied to marketing
  • Mensajes: 305
  • Gracias recibidas: 0
Hello:

I am making a form that is not working for me. I explain the case:

I have two three page forms with next >> and << back buttons.

In Manage Scripts / Validate and next page

I use this code to stabilise the form when it goes to the second page of the form:
function ff_validate_nextpage(element, action)
{
    if(typeof bfUseErrorAlerts != 'undefined'){
     JQuery(".bfErrorMessage").html('');
     JQuery(".bfErrorMessage").css("display","none");
    }

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
           swal(error);
        } else {
           bfShowErrors(error);
        }
        ff_validationFocus('');
    } else {
        ff_switchpage(ff_currentpage+1);
        //self.scrollTo(0,0);
         document.getElementById("claim_form1").scrollIntoView();
    }
} // ff_validate_nextpage

This is for a single form, the name of the form (claim_form1) is used. When there are two forms, is it used like this? claim_form1;claim_form2
document.getElementById("claim_form1;claim_form2").scrollIntoView();

Also in Validate previous page with this code:
function ff_validate_prevpage(element, action)
{
    if(typeof bfUseErrorAlerts != 'undefined'){
     JQuery(".bfErrorMessage").html('');
     JQuery(".bfErrorMessage").css("display","none");
    }

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
           swal(error);
        } else {
           bfShowErrors(error);
        }
        ff_validationFocus('');
    } else{
    	if(ff_currentpage > 1){
	 ff_switchpage(ff_currentpage-1);
	 //self.scrollTo(0,0);
         document.getElementById("claim_form1").scrollIntoView();
        }
    }
} // ff_validate_prevpage

Doing the same:
document.getElementById("claim_form1;claim_form2").scrollIntoView();

This error is displayed:
0
chr(): Argument #1 ($codepoint) must be of type int, string given

What would be the right thing to do?

Thank you.
Alejandro Cobo
Neuromarketing Company

=============================================

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

Última Edición: Post by sciencemkt.

Problemas en Manage Scripts 6 meses 6 días antes #272025

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

if there are two forms then like this:
document.getElementById("claim_form1").scrollIntoView();
document.getElementById("claim_form2").scrollIntoView();
Let me know the result

Regards,
Tihana

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

Última Edición: Post by tihana.krivic.
  • Página:
  • 1
Tiempo de carga de la página: 0.043 segundos