Skip to main content
Participating Frequently
Oct 11, 2016 7:15 AM UTC
Question

Clear a Icon Javascript

I've tried this script that I found on the
forum, but can not get it to work.

I use another button that set up to clear the button and both buttonis set to “Icon
only”

var oIconClear =getField("buttonClear").buttonGetIcon({nFace: 0}); 

getField("Button3").buttonSetIcon({oIcon:oIconClear, nFace: 0}); 

Anybody who have an idea why it does not work

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

try67
Community Expert
Community Expert
Oct 11, 2016 7:29 AM UTC

What happens when you run it? Are there any error messages in the JS Console?

Translate
AcronatAuthor
Participating Frequently
Oct 11, 2016 7:46 AM UTC

No error messages

it seems that the code is accepted, but nothing happens

Translate
try67
Community Expert
Community Expert
Oct 11, 2016 7:48 AM UTC

Can you share the file in question with us? Also, in what application are you testing it?

Translate