Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the 'hide' / 'show' property of the UI select component?

Hi,

I have tried this approach and it did not work.

Apperyio('inputSelect').hide();
Apperyio('inputSelect').show();

Can anyone suggest the correct syntax?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How do I set the 'hide' / 'show' property of the UI select component?

Hello Todd,

I just tried it and this approach works correctly. Could you please clarify how do you call it?

Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the 'hide' / 'show' property of the UI select component?

I have a test harness which runs this Javascript on button click event
Apperyio('inputSelect').hide();

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How do I set the 'hide' / 'show' property of the UI select component?

Todd,

I tested, this code works correctly on button click. Could you please clarify do you have any error in a browser console?

Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the 'hide' / 'show' property of the UI select component?

No error is reported. Nothing happens when the button is clicked. I have attached a screen shot as I'm sure this is something 'silly. Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How do I set the 'hide' / 'show' property of the UI select component?

Please make sure you use correct component name.

Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the 'hide' / 'show' property of the UI select component?

I have checked and the component name appears to be correct. It's called:

'inputSelect' You can see it in the screen shot above in the JS code and in the component name.

I'm sure this is something silly :-)

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How do I set the 'hide' / 'show' property of the UI select component?

Hello Todd,

This code works for other components, but not for select. Please try the following:
precodeAppery("mobileselectmenu_59").closest('[data-role=fieldcontain]').hide();
Appery("mobileselectmenu_59").closest('[data-role=fieldcontain]').show();/code/pre

Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the 'hide' / 'show' property of the UI select component?

Great, it works! Thanks for your help. Todd

Return to “Issues”