'show' image on button click

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
RichDotson
Profound User
Posts: 22
Joined: Fri Aug 06, 2010 1:40 pm
First Name: Rich
Last Name: Dotson
Company Name: Wheeling & Lake Erie Rail
State / Province: Ohio
Country: United States
Contact:

'show' image on button click

Post 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?
Greg
Profound User
Posts: 27
Joined: Thu Dec 02, 2010 1:27 pm
First Name: Greg
Last Name: Sears
Company Name: Profound Logic
Phone: 937-439-7925
Address 1: 562 Congress Park
City: Dayton
State / Province: Ohio
Zip / Postal Code: 45459
Country: United States
Contact:

Re: 'show' image on button click

Post 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.
RichDotson
Profound User
Posts: 22
Joined: Fri Aug 06, 2010 1:40 pm
First Name: Rich
Last Name: Dotson
Company Name: Wheeling & Lake Erie Rail
State / Province: Ohio
Country: United States
Contact:

Re: 'show' image on button click

Post by RichDotson »

That worked great. Thanks for the quick response.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests