Skip to main content
Participant
August 5, 2025
Question

Dropdown list and Text field not populating an HTML table when selected

  • August 5, 2025
  • 2 replies
  • 263 views

I am trying to populate some table cells after the user selects a month from a JavaScript drop-down list and enters a year in a text box.For some reason the form is not working. As an example when I select a month, nothing happens. Similarly when I enter a year.

For the month dropdown list, the user needs to select a month from a drop down list.
For the year text field, the user needs to enter a year in the text field.

The year entered in the text box should populate the year (column 2) in the table. The month in the dropdown should populate 2 cells in the first July and October instances of column 3 as either the year entered, year + 1 or year + 2 for the various months in column 1.

Please see this table screenshot that shows what I am trying to create.

Depending on the month that the user selects, the ACWB 3rd table cell will be populated with Trustee or recipient (e.g., January-June = Trustee and July-December = Recipient

For the ACWB 4th table cell depending on the month that the user selects, will be populated with Trustee or recipient (e.g., January-September = Trustee and October-December = Recipient

The first section of the code below, will appear in the head of the HTML page. The second section of code below will appear in the body of the HTML page. Hopefully, this is clear but if not, please contact me to ask questions.

    2 replies

    kglad
    Community Expert
    Community Expert
    August 5, 2025

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



    <"moved from using the community">
    a_0499Author
    Participant
    August 5, 2025

    Ok thank uou very much

    kglad
    Community Expert
    Community Expert
    August 5, 2025

    assuming acrobat...

    a_0499Author
    Participant
    August 5, 2025

    Actually, my file is HTML using JavaScript

    Bernd Alheit
    Community Expert
    Community Expert
    August 6, 2025

    Try a forum for web browers and HTML .