Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8416267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:42:02+00:00 2026-06-10T01:42:02+00:00

I have an event listener on my html page so that when the value

  • 0

I have an event listener on my html page so that when the value of a component changes, another component will become mandatory. But this only works if you change the value of the component, save the page and reload it

Is there a way to do this without having to save and reload the whole page?

@EventListener(targets="licensingStatus", events="onchange")
public void onLicenseStatusChange(IRequestCycle cycle){
....
}

EDIT:

can a function turn

<input jwcid="licensingApprovalDate@CustomDatePicker"/>

into this

<input jwcid="licensingApprovalDate@CustomDatePicker" validators="validators:maxDateToday"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:42:03+00:00Added an answer on June 10, 2026 at 1:42 am

    If the component needs to be generated dynamically:

    Simplest implementation is using AJAX. You can have a listener for any component on your page, and when a change occurs, make an AJAX call and make the other component appear.

    Else:

    If the component already exists and has been made invisible initially and just needs to be made visible then you can have this code

    document.getElementById('other-component').style.visibility='visible'; 
    

    in your listener.

    EDIT:

    If you just want the new field to be mandatory, you can create a check for it in javascript so that when you enter the submit button or whatever it is, the field is checked whether it is empty or not and if empty gives out a message to the user. Something like this:

    mystring=document.getElementById('other-component').value; 
    if(!mystring.match(/\S/)){
    alert ('Empty value is not allowed');
    return false;
    }else{
     alert ("correct input");
     return true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this event listener: input_1.addEventListener('input',function(){ updateFromInput(1); },false); It controls the location of a
I have more than one Event Listener that calls a specific function, and I
Say you have a layer with markers and an event listener that displays a
I have a page that loads an HTML form via a $.ajax request. The
Is it possible to have keyboard event listener canvas.addEventListener('onkeydown', ev_keydown, false); like we have
I have the following event listener in SecurityConfig security { active = true useSecurityEventListener
I have implemented Shake Event listener in my application and onShake do some logic.
I have defined 2 event listeners for name: kernel.event_listener, event: kernel.request, but I can
I have a DropDownList with an SelectedIndexChanged event listener <asp:DropDownList ID=LoanOptionCombo runat=server AutoProstBack=True> Listener
I have a problem trying to register my own Event/Listener to the event dispatcher.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.