2 Replies Latest reply: Sep 16, 2014 6:36 AM by AgentMarketing RSS

    Editable form with stationary image?

    AgentMarketing Community Member

      I'm creating an editable .pdf form in which someone can add their own image but I want a watermark or a specific image to alway be on top. How can I do that?

       


      The main goal is to let people swap out the house photo but alway keep the sold sign on top.

       

       

      Skogman Realty SOLD cover - test.jpg

        • 1. Re: Editable form with stationary image?
          George_Johnson CommunityMVP

          Use three buttons, all the same size in the same location. The bottom-most one would be the one for the image of the house. The middle one would be the one for the sold sign. These two should be read-only. The top button should be transparent with no border. It is the one that triggers the code to prompt the user to select an image, using the buttonImportIcon method. For exmaple:

           

          // Mouse Up script for top-most button

           

          // Get a reference to the house image button

          var f = getField("house_image");

           

          // Prompt the user to select an icon source for the house image

          f.buttonImportIcon();

           

           

          where "house_image" is the name of the bottom button used to display the image of the house.

          • 2. Re: Editable form with stationary image?
            AgentMarketing Community Member

            That worked perfectly, thank you! Would you happen to know if it's possible to resize the image once it's uploaded? (from the uploader's standpoint)