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

299
Vistas
How to reset list to blank using javascript in Oracle apex

I have a select list component in Oracle apex and one button

Select list drop down as below values I can choose any one

-

  • A
  • B
  • C

On button click I have written a java script

if $('#P1_DROPDOWN').val() == 'A'
{
   alert.message('A value is selected') 
}
else
{
   apex.item.setvalue(index[0])  -- blank 
   or 
   reset the list to none selected 
} 

How do I reset the List item to none o original state

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

0

Here is an example for a select list that has "Display Null Value" set to "Yes" and no value for "Null Return Value".

if (apex.item( "P1_DROPDOWN" ).getValue() == 'A') {
    alert('a was clicked');
} else {
    apex.item( "P1_DROPDOWN" ).setValue( "" );
}

If there is a return value for the Null value, then change the setValue accordingly.

Side Note: Instead of clearing the selected value a validation indicating why the selected value is not the correct one might give a better user experience.

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