Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Unclickable Button

Avatar

Level 1

Hi experts!

I have added two button on my master page and wrote a javascript to make visible or hidden some pages on click.

When i try to test in preview tab i can not click on buttons. There is same behaviour on radio buttons and drop down lists.

Can you pls tell me what is wrong ?

Thanks.

3 Replies

Avatar

Level 7

Hi,

Probably need to see your javascript and hierarchy to help more.

But check these:

  • check the javascript to make sure you aren't disabling objects or subform that contains the objects that wont work
  • I am sure you checked, but are they enabled
  • check initialisation code isnt disabling the objects
  • if you are using any shapes like a rectangle, move it to the back. Even a rectangle with no fill will cover other objects when the form is run.

I have done one form that was so messed up and just would not work that i just did it again in the same way and it worked. Still dont know why.

Avatar

Level 1

I have checked and everything is fine. When i ctrl+N and add a button on form it works in preview but it doesnt work in the form that i have to add button. This sounds so odd.

Avatar

Level 10

Hi,

Sometimes my buttons go read-only, usually when I accidentally type something into the calculate event, even if I remove the code and put it into the click event it stays read-only, but there must be other editing scenarios as well.

Try changing the field to a checkbox, which will allow you to make it "User Entered" again (on the Value tab of the object Palette).

Or you could look in the XML Source and see if there is a line like;

<field name="Button2" y="171.45mm" x="92.075mm" w="28.575mm" h="6mm" access="readOnly">

and remove the access="readOnly" bit.