Add auto refresh

Follow

Comments

7 comments

  • Avatar
    Marek Gazda

    How can I trigger AT_reload() function after submitting a form response by a user?

  • Avatar
    Awesome Table

    Hi Marek,

    You can only trigger the function auto refresh by specifying the time interval. 
    It is not possible to trigger this function only after an event as form responses.

    Thomas

  • Avatar
    Randolph Abelardo (Edited )

    @Marek, you can use Google FormsonFormSubmit trigger workaround:

    link the form to a GSheets Form Response, 

    then use the AwesomeTable Auto-Refresh script.

    Since the minumum argument required here is 15 seconds

    newly submitted form responses will be updated (reflected) in the AwesomeTable view in 15 seconds or less (which is not too much to wait for, don't you think?) Hope this works for your use-case.

     

    @Thomas, this approach / workaround will be included in the upcoming GeoCode tutorial.

  • Avatar
    Will

    Using the last example to make a "Refresh Data" button... is it possible to change the button type or make it an icon?

  • Avatar
    Awesome Table

    Hi Will,

    Indeed it is possible to change or customize the button. You just need to change it with CSS but it requires knowledge in code. 
    I suggest you to consult this article that could be useful for you.

    Regards,
    Thomas

  • Avatar
    Paul

    Is there a way to perform the refresh and stay on the page? For when I click refresh button in page 2 it will refresh and return to page 1.

    Thanks,
    Paul

  • Avatar
    Awesome Table

    Hi Paul,

    Unfortunately, it is not yet possible to stay on the same page when it's reloading. When your view is refreshed, you return automatically on the first page.

    Kind regards,
    Thomas