Page 3 of 3

Apperyio().hide() and Apperyio().show();

Posted: Tue Jan 06, 2015 2:32 pm
by Jason Baird

I'll give it a shot, I really hope it works.


Apperyio().hide() and Apperyio().show();

Posted: Tue Jan 06, 2015 3:30 pm
by Jason Baird

//doesn't work installed or through appery app tester, does through web browser testing
Apperyio('fldExpiration2').hide();
Apperyio('fldExpiration').show();

//just gives a bunch or errors and doesn't work.
Apperyio('fldExpiration2').css('display', 'none');
Apperyio('fldExpiration').css('display', 'block');


Apperyio().hide() and Apperyio().show();

Posted: Tue Jan 06, 2015 4:37 pm
by M&M

Any hint on what those errors are?


Apperyio().hide() and Apperyio().show();

Posted: Tue Jan 06, 2015 4:40 pm
by M&M

The exact same code works for me on the browser, and my android 4.2 phone. Could it be something else that's throwing the errors? Do you wana add a new page and just place 1 text input control and 2 buttons and check that out - 1 button for hiding the input control, the other for showing the input control


Apperyio().hide() and Apperyio().show();

Posted: Tue Jan 06, 2015 5:49 pm
by Jason Baird

Here's the issue. The .hide() and .show() work with "buttons" but not buttons that are part of a button group.

I'm moving things to individual buttons and calling it a day.


Apperyio().hide() and Apperyio().show();

Posted: Wed Jan 07, 2015 1:06 am
by Yurii Orishchuk

Hi Jason,

Tried following:

  1. Added groupbutton on the page.
    Details: http://prntscr.com/5pe8ts/direct

  2. Get Name for second item.
    Details: http://prntscr.com/5pe94o/direct

  3. Run app.
    Details: http://prntscr.com/5pe9gk/direct

  4. Then use following code to hide second button-item
    Details: http://prntscr.com/5pe9vh/direct

    pre

    Apperyio("mobilebutton_71").hide()

    /pre

    So it functionality works for me.

    Could you please show us your usecase that does not work?

    Regards.


Apperyio().hide() and Apperyio().show();

Posted: Wed Jan 07, 2015 1:32 pm
by Jason Baird

The objects that were being hidden/showed were fields. The triggers were buttons in a button group, when I moved them to individual buttons it works.


Apperyio().hide() and Apperyio().show();

Posted: Thu Jan 08, 2015 12:34 am
by Yurii Orishchuk

Hi Jason,

Thanks for this update.

If you will face with this problem again please let us know.

Regards.