Ahh, I read your post and thought you knew how to insert the picture
dynamically... just not how to hide it until you wanted it shown.
Assuming you're using IP2007, do this:
1) Insert a picture control where you want your picture
2) A dialog will appear, choose "as a link"
3) Your picture control is placed on the page, and a new field to hold the
link to the picture file is placed in your data source
4) Go to your data source and edit the new field to contain the path to the
picture you want, ie C:\mypicture.jpg (you'll see the picture appear in the
control when you save the field data) Note, this assumes all picture
filenames for users are the same name in the same path on each computer... if
that is not the case you'll have to update the filename in the datasource
field to reflect the path/file it is stored for the user accessing the form
5) Double click on the picture control to open it's properties
6) Uncheck the "allow user to browse for new pictures" option on the "data"
tab
7) Click the "display" tab and conditional formatting button to apply a
conditional formatting rule as I explain previously.
That worked for me... although I didn't have a tif handy, just a jpg.
Because it's a link to a local drive and not embedded in the form, it should
show each user whatever picture they have saved in that path on their own
machine.
Hope this helps!
DLocke said:
That sounds like a great idea, but I don't think it will work in my case.
The picture I am adding is different for each person who clicks the button.
The file I need to shows is always in the same location, "C:\temp\pic.tif",
but the pic.tif file has a different picture for each person.
EX: I click the button and pic.tif shows a football. If you click the button
the pic.tif shows a basketball.
So, I need the button to go get the pic.tif file on the computer of the
person currently clicking the button.
Thank you for your suggestion.
:
You should be able to accomplish that with conditional formatting on the
picture control... just add a formatting rule that hides it until some
condition is met. For example, you could have the formatting rule watch the
date field you are setting with the button, and when it's no longer blank
show the picture control.
Remember the logic around show/hide is somewhat backwards... there is no:
When [X] is [true] show the control
...you have to flip it around...
When [X] is [false] DON'T show the control
:
I have created a button that when clicked will add the current date to a
field. This works just fine. But, I would also like to set a picture field
using a TIF file on my local file system using the button.
I know you can set the picture properties to "Show the placeholder" or
"Specify default picture". But I don't want the picture to appear until the
button is clicked.
I looked into the rules but I don't see an option that would allow you to
import a local file.