Hide dropdown object's button except when there is focus on field?

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

04-12-2015

Is there a way to hide the dropdown object's button (only) when there is not focus on that dropdown field? So the button would not be visable until the user clicks into that dropdown and is not visible when the user exits that dropdown field. Like the way the date object works.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

04-12-2015

If you set the field's access to readOnly by default, they still can enter the field to show the button if you put the script above in the enter's event...

I hope I'm understanding you well, this method should be working perfectly if your goal is to hide the button within the dropdown list

Answers (4)

Answers (4)

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

04-12-2015

Sorry - I missed that part. Thanks so much!

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

04-12-2015

And once a selection is made and exited, the user would not be able to change their selection?

Avatar

Avatar

DKinsley

Avatar

DKinsley

DKinsley

04-12-2015

So - I would need to leave the buttons visible until after the user makes a selecetion and exits. Correct? The buttons can't be hidden before they enter because then they would not be able to enter the field.

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

04-12-2015

Hi there,

Yes there is a way, when you set the dropdown's field access to readOnly, the button disappear...

So if you set the field's access to open when the user enters the field, the button will appear

And if you set the field's access to readOnly when the user exit the field, the button will disappear

Hope this will help ya!