Hi,
I am using Infopath 2010. I selected the SharePoint list template.
In the page, I have a textbox(it is set as field2), button and a rich textbox(it is set as field1).
The requirement is, the user inputs the imagename in the textbox(that is field2) and clicks on the button. On the button click, i need to retrrieve the image from the picture library and show it in form. To display the picture, i have added the richtextbox and set it to readonly option.
In the Rules for button, I have done the following:
Action: Query for data - In the Data connection - receive data - selected the picture library, where the images are available.
Action: Set a field's value - Field - I selected the richtextbox(that is field1).
In the button, added rule like this:
concat(SharePointsiteurl(),"PictureLibrary/",field2,".jpg")
The above rule is working fine, if the image available inside the picture library.
But, if the Image is inside some folder, then I am not able to retrieve the image.
what should be set for the Value? I am not sure of using whiich formula to use and show the image. I need to show the image which matches the input given by the user.
How to achieve this? Is the above method, which i done, is it correct?
Thank you