5

Slide-in Form Button

The slide-in form button disappeared with Ninox version 3.13

Slide-in Form

It can be made visible with the following script...

dialog("Custom CSS", html("
    <script>
        const customCSS = '.hud-menu{overflow:hidden;}.hud-right-lash{position:static;}';
        const customSheet = new CSSStyleSheet();
        customSheet.replaceSync(customCSS);
        document.adoptedStyleSheets = [customSheet];

        var interval = setInterval(() => {
            var btn = document.querySelector('.nx-alert .nx-button-text');
            if (btn) {
                btn.click();
                clearInterval(interval);
            }
        });
    </script>
"), ["close"])

 

The script goes in Trigger after open in Options.

.hud-menu{overflow:hidden:} is optional and is only useful for the Mac app version which displays a scrollbar in the hud-menu area when the form view is hidden.

6 replies

null
    • Mel_Charles
    • 2 mths ago
    • Reported - view

    @sean - neat little fix - like it and using already !

    • Sean
    • 2 mths ago
    • Reported - view

    For those who are already using this script for other CSS modifications, you only need to modify this line...

    const customCSS = '.hud-menu{overflow:hidden;}.hud-right-lash{position:static;}';

    No need to have multiple scripts just put the CSS modification inside the single quotes.

    • Alan_Cooke
    • 2 mths ago
    • Reported - view

    There seems to be a problem with this script.  Can anyone confirm.  I added this script a few days ago and carried on as normal...no issue.  I then needed to delete a record and I could not.  The dialog to confirm flashed but no way could I delete the record.  To cut a long story short I removed this code and I can now delete the record I tried.  Can some test this on their end.

      • Sean
      • 2 mths ago
      • Reported - view

      Hi Alan, I’ll take a look at it tonight.

      • Sean
      • 2 mths ago
      • Reported - view

       I only use the Mac app and I tested record deletion in both form view and edit in table mode. I was able to delete records in both modes.

      Are you only running the script once and just modifying the customCSS variable to suit your needs? Can you post the code you are using and are you using it in Trigger after open?

    • Mel_Charles
    • 2 mths ago
    • Reported - view

    I'm on web cloud version and works fine with Seans code in place

Content aside

  • 5 Likes
  • 2 mths agoLast active
  • 6Replies
  • 85Views
  • 3 Following