Skuid Mobile: Setting the left panel on page load

edited February 2017 in Questions
Hi there! I've looked everywhere but can't seem to find how to do this... How can I set the left panel (and have it display) on page load for a skuid mobile page (without requiring some kind of interaction by the user)? Is this going to have to be javascript? Thanks!

Comments

  • Jannik GysiJannik Gysi Member
    edited February 2017
    Hi Diane,

    Unfortunately, there's not an out of the box solution. As a workaround, you could try to create an invisible button, which is clicked on page load.

    Similar to this: https://community.skuid.com/skuid/topics/how-to-click-a-button-in-a-snippet

    Since it is a mobile page, you have to modify it slightly:
    $('#uniqueId').trigger('tap'); 
    Instead of:
    $('#uniqueId').click();
    Don't forget to put it into an in-line JS resource, so it gets executed on page load.


    This is a custom JavaScript solution provided as is without support and is intended to function in Skuid Rockaway Iteration 10 (8.15.8). As with any change, we recommend that you implement and test thoroughly in a non-mission critical sandbox environment before deploying to production.

  • edited August 2016
    Cool, thanks Jannik! I'll give that a go.
Sign In or Register to comment.