Slide-in Form Button
The slide-in form button disappeared with Ninox version 3.13
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
-
@sean - neat little fix - like it and using already !
-
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.
-
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.
-
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