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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi,
I have tried this approach and it did not work.
Apperyio('inputSelect').hide();
Apperyio('inputSelect').show();
Can anyone suggest the correct syntax?
Hello Todd,
I just tried it and this approach works correctly. Could you please clarify how do you call it?
I have a test harness which runs this Javascript on button click event
Apperyio('inputSelect').hide();
Todd,
I tested, this code works correctly on button click. Could you please clarify do you have any error in a browser console?
Please make sure you use correct component name.
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 ![]()
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
Great, it works! Thanks for your help. Todd