Skip to main content
Participant
May 14, 2021
Question

Auto filling from a drop down

  • May 14, 2021
  • 3 replies
  • 955 views

Hi,

I have been assigned the task of creating a document that when you select an "extra duty assignment" then it auto fills the "stipend" text box.  I have studied a lot of posts here and I must be a little thick headed as I cannot get what looks to be a fairly simple task to work.  Does anyone have any suggestions on what I am doing wrong?  I have attached a .jpg showing what I have.....

    This topic has been closed for replies.

    3 replies

    LoriAGAuthor
    Participant
    May 17, 2021

    This worked great!  Thank you.  Is there a fairly easy way to get an autosum of the six different fields (with javascript behind them) to show a grand total? 

    try67
    Community Expert
    Community Expert
    May 14, 2021

    In the future please post the code as text, not as an image.

    Your error is a common one. The comparison operator in JS is "==" (or "==="), not "=". That one is used to assign a value.

    Ged_Traynor
    Community Expert
    Community Expert
    May 14, 2021

    Hi

    I assume this is Acrobat you're using, I'll move the thread to the correct forum for you