Skip to main content
Rstreet
Inspiring
April 17, 2019
Answered

Display.Hidden not working?

  • April 17, 2019
  • 1 reply
  • 1762 views

Hello -

I am hoping someone might be able to tell me why the below does not work? Basically, I am trying to hide a button; using another button. From the research I have found, it seems the below should work...but it doesn't...nothing happens? 😞

Anyone have any ideas as to what may be preventing the below from working:

Button name: Attach

this.getField("Attach").display = display.hidden;

Thanks in advance for your time

This topic has been closed for replies.
Correct answer Rstreet

Never mind...I found it...just removed the "this." and all is well

Final working result:

getField("Attach").display = display.hidden;

Thank you

1 reply

Rstreet
RstreetAuthorCorrect answer
Inspiring
April 18, 2019

Never mind...I found it...just removed the "this." and all is well

Final working result:

getField("Attach").display = display.hidden;

Thank you

try67
Community Expert
Community Expert
April 18, 2019

That should not matter. From what context did you run this code?

Rstreet
RstreetAuthor
Inspiring
April 18, 2019

Hi Try67 -

Yes, I would not have thought that would have mattered; but apparently with buttons it does. It works fine on text box fields with the "this." included; but not buttons for whatever reason? When I removed the "this." it worked on the button(s).

I was using this in the Action control, Mouse Up, Run Java Script