If all you want is a UI warning, use Rules (or the OM) to show an Alert when
that field changes.
If you need to do more things (like verifying the image), you can turn
off
user's ability to insert images while you're designing a form. Then, your
code will have to cover all the file browsing (req. trusted form), Base64
encoding and DOM insertion.
Brian
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
Anyone else want to jump in here?
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
How can you control the picture that they can insert without showing it
as
the default image?
The reason for the button is to add a UI message before inserting the image.
How can I do this?
-TFTH
Bryan
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
The Picture control has this functionality built right into it. When you
have a Picutre control in your view, the form user clicks on that, and it
allows them to select a picture. That picture is then inserted.
If you want multiple pictures, makre sure your Picture control is in a
Repeating Group.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Hello,
How would I program a button to insert a specific picture into a field?
Example: User has a digital image of their personal signature. After
completing the form, they can add this image to a field by clicking a
button.
-TFTH
Bryan