Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Deutsches Omnis Forum Button event for Hold-Remote forms Omnis Studio 11

  • Andreas Pfeiffer

    Administrator
    July 30, 2025 at 7:30 am

    Hi Sameera,

    Sorry for the late answer. For some reason your post stuck in the inbox and we were not be alerted. However for other users to see the solution I will post the answer we sent you directly from the German support team:

    Unfortunately there is no built-in/native On evLongPress or evHold in Omnis Studio or even in JavaScript.
    We have now been able to build our own “evLongPress” event with the JavaScript events “mousedown”, “touchdown”, “mouseup” and “touchend”.
    The whole thing involves some JavaScript on the client side.
    An example library is attached to this email. To implement the whole thing for you, you would need to adjust the reference to your button in the $init and then implement the client method $onlongpress to your button. So that the click is not triggered after the LongPress, you would then have to copy the code from our “onlongpress”. Then another click will be prevented after a long press.
    I hope this helps you.

    Library attached.

    Best regards,

    Andreas

Log in to reply.