Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

107
Vistas
Pass a Javascript value to Apex Application item

How to pass the value of retVal variable from this JS function to an application item, so I could store the value in the DB? This function open a prompt to enter the value.

function getEmailValue() {
           var retVal = prompt("Enter your Email Address : ", "your Email here");
           document.write("An Email will be send to : " + retVal );
        }

Note:

  1. This JS function runs from a JS file exists in Static Application Files it calls Ajax callback from APEX side.

  2. P12_PAUSE_EMAIL is an application item.

  3. I can't use page items or Dynamic actions as there is no actual page.

I tried apex.item , $v and $ , but it gives undefined object.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I wouldn't rely on using a prompt for this.

If you want a similar UI, you could simply use an inline dialog or a modal dialog page (have a look at the Universal Theme Sample Application for examples.

In either of these, you could have an item which you could then use directly (granted it's listed in the items to submit to your ajax callback see the pageItems attribute here ).

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda