Unclickable Button

Barbus_Titteya

05-03-2019

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

_Bruce_Robertson

MVP

08-03-2019

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.

Barbus_Titteya

05-03-2019

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.

MinusZero

05-03-2019

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.