How to Populate Drop Down List based on Multiple Text Box in Adobe Acrobat

Поділитися
Вставка
  • Опубліковано 6 лют 2025

КОМЕНТАРІ • 8

  • @rmcrae
    @rmcrae 3 місяці тому

    Thanks so much I have been trying to solve this problem for 6 Hours

  • @reiino8293
    @reiino8293 Рік тому +1

    how about the other way around when you select from the drop down it will fill the other boxes

    • @sarservices
      @sarservices  Рік тому

      You need to create IF-Else statements for every items in your drop down list and give reference to text field(s) so it can populate accordingly.

  • @md.zahidulhaque7023
    @md.zahidulhaque7023 9 місяців тому

    In my fillable pdf form, i have 2 text box. They are A and B. If i write anything in the box A then i want the box is B automatically filled by 100. Can you please write this code for me?

  • @RandyLucas-c1q
    @RandyLucas-c1q Рік тому +1

    I am unable to read the JavaScript. Do you have the text for this?

    • @sarservices
      @sarservices  Рік тому +1

      Hi @Randy Lucas , thanks for your comment! The JavaScript code you're asking for is already included in the video. I would recommend watching the video in 1080p and pausing at the relevant part to get the code you need.

    • @RandyLucas-c1q
      @RandyLucas-c1q Рік тому +1

      @@sarservices Thanks! that worked!

    • @rmcrae
      @rmcrae 3 місяці тому

      Here it is
      if (/^IstGrp/. test (event.source.name) )
      var aValues = this.getField ("LstGrp") .getArray () map (function (a) (return a.valueAsString;)) ;
      var aList = aValues. filter (function (a) (return (a.length > 0) ;}) ;
      aList.unshift (" ");
      event.target.setItems (aList) ;
      }