Skip to main content
Participating Frequently
October 11, 2016
Question

Clear a Icon Javascript

  • October 11, 2016
  • 10 replies
  • 1051 views

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 has been closed for replies.

10 replies

try67
Community Expert
Community Expert
October 11, 2016

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

AcronatAuthor
Participating Frequently
October 11, 2016

No error messages

it seems that the code is accepted, but nothing happens

try67
Community Expert
Community Expert
October 11, 2016

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