Announcement

Collapse
No announcement yet.

Dynamically populate image field?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamically populate image field?

    Is there a way to dynamically change the image being displayed in an image field? It doesn't look like we can name an image field, so I'm not sure how to reference it through JavaScript.

    Same question for the icon image of a button field - can I change the image source dynamically?
    Last edited by mwill81; 04-27-2017, 06:14 PM.

  • #2
    Dear mwill81,Please refer to the attached demo file:click a field to insert image.pdf to see if it is the one that you requested? For the Javascript codes,please refer to the attached screenshot:JS codes.jpg.
    Attached Files

    Comment


    • #3
      Is there a way to populate the field with an image without prompting the user to select a file? Basically I have a library of images and depending on which user logs in they'll see a different image in the PDF file when they open it.

      Comment


      • #4
        Dear mwill81,

        Thanks for your response. For this request,we need to know how you make one image in the images library
        to be associated with each login account on your part? Please help to describe user scenario in more details,so that we can better advise.

        Comment


        • #5
          I came across the same problem.
          Last edited by stacy4; 09-21-2017, 04:15 AM.

          Comment


          • #6
            stacy4

            Please email your request to support@foxitsoftware.com. Thank you.

            Comment

            Working...
            X