Page 1 of 1

'show' image on button click

Posted: Wed Apr 20, 2011 11:02 am
by RichDotson
I would like to have an image hidden when the page is displayed but then make the image visible and submit the form when a button is clicked. I've tried a few different things using some of the examples that are in the 'Client-side Scripting API Reference' but cannot seem to get this to work. Does anyone have the javascript that I can place in the .onclick event that will make this happen?

Re: 'show' image on button click

Posted: Wed Apr 20, 2011 1:37 pm
by Greg
On the buttons onclick event, try adding the following API:

applyProperty("MyImageId", "visibility", "visible"); pui.click("MybtnId")

also, make sure that you set the Image visibility property to "hidden".

Let me know if this helps.

Re: 'show' image on button click

Posted: Wed Apr 20, 2011 2:28 pm
by RichDotson
That worked great. Thanks for the quick response.