Find Page Script Functions From The Web Editor
Learn how to use page script badges in the Web Editor to find available page-level script blocks, view detected function names, and open a script for editing.
This guide explains how to use the page scripts list inside the Admin Web Editor.
Use it when you want to:
- find page-level script blocks more quickly
- check which function names are available in a script
- open a related script for editing while working on event actions
Before You Start
Open the Web Editor from System > Platform Customization.
Then open a page, select a block, and go to the right-side editing tools where page script shortcuts are available.
What The Page Scripts List Is For
The page scripts list helps you find script blocks that already exist on the current page.
This is useful when you are working with event actions and want to check which page-level functions are already available before writing or updating action code.
What You Can Find In The Page Scripts List
The page scripts area can include:
- a list of script badges
- a tooltip that shows detected function names
These tools help you review the available script blocks without searching the whole page manually.
Open A Script Badge
Choose a script badge when you want to open that script for editing.
This helps you move directly from the current block setup to the related script instead of searching for it another way.
Hover To View Detected Functions
When you hover over a script badge, OpenMirai can show a tooltip with the function names found in that script.
Use this when you want to confirm whether the script contains the function you need before opening it.
Understand The Function Count Hint
Script badges can also show a hint for how many functions OpenMirai detected in that script.
This gives you a quick idea of whether the script contains reusable function options.
What Happens When No Functions Are Found
If a script block does not contain any detected function definitions, OpenMirai can show a No functions defined tooltip state.
This is useful because it tells you that the script exists, but it does not currently offer a detected function for reuse.
When To Use The Page Scripts List
Use the page scripts list when:
- you are setting up or reviewing event actions
- you want to reuse or check page-level functions
- you need to open a related script block directly from the current editing context
What To Do Next
- hover a script badge to review detected functions
- open the related script if you need to inspect or edit it
- return to the action dialog after checking the available functions
- save the page after finishing your event-related changes
Create Edit Or Delete An Event Action In The Web Editor
Learn how to use the action dialog in the Web Editor to create, update, or remove an event action for a selected block, work with function chips, and save or cancel your changes.
Edit Block Content And Wrapper Settings In The Web Editor
Learn how to use Block Settings in the Web Editor to update selected block content, work with inputs, selectors, and toggles, and manage optional wrapper settings when they are available.