FM BetterForms
BF Editorfmbetterforms.com
1.0 dont use
1.0 dont use
  • Introduction
  • Features Summary
  • Getting Started
    • System Overview
    • Integration
      • 1. Configure FileMaker Server
      • 2. Add your Server to BetterForms
      • 3. Introduction to Hooks
      • 4. Create your first Site
      • 5. Create your first Page
      • 6. Configure your FileMaker File(s)
      • 7. Run your first Hook
      • Next Steps
    • Common Customizations
      • Introduction to Actions
      • Introduction to Buttons
      • Page Navigation
      • Displaying Data in a Table
    • Support
      • Hacking a Webpage
      • Learning JSON
  • Reference
    • Site Settings
      • Navigation
      • Slots / Code Injection
      • App Model
      • Site-wide Named Actions
    • Page Settings
      • Data Model
      • Card / Window Modals
      • Validation
        • Custom Validators
      • Misc Page Settings
    • Page Elements
      • Common
        • Button
        • Data Table
        • HTML
      • Grouping Elements
        • Tabs
        • panel
        • accordion
        • listrows
      • Uploading Files
        • dropzone
        • dropzone to S3
        • uploadCare
      • Misc Elements
        • Plain Text / Code Editor
        • signature
        • fullCalendar
        • rangeSlider
      • Payment Gateways
        • Authorize.net
        • PayPal
        • Stripe
      • Adding Custom Page Elements
    • Actions Processor
      • Named Actions
      • Actions
        • runUtilityHook
        • path
        • debounce
        • throttle
        • showAlert
        • showModal / hideModal
        • function
        • clipboard
        • cookie
        • setFocus
        • wait
        • emit
        • validate
        • channelJoinAnon
        • channelLeaveAnon
        • messageSend
        • messageSendAnonChannel
      • Authentication Actions
    • Script Hooks
      • Globals Variables
        • $$BF_Model
        • $$BF_App
        • $$BF_State
      • Keeping Keys Private
      • Reducing Payload Size
      • API Callback Endpoint
      • Common Hooks
      • Scoped Hooks
    • Users & Authentication
      • Managing User Accounts
      • Custom Login Pages
    • Advanced Configuration
      • Custom Domains
    • BF Utility Functions
    • BF Error Codes
    • Messaging
      • Adding users to channels
      • Removing users from channels
      • Sending messages
      • Get connected users
      • Get active channels
  • Usage Tips
    • Troubleshooting
      • Debugging
      • Frozen Actions Queue
    • JavaScript Tips
      • Calling Named Actions from HTML Vue Events
      • Calculations
    • System Overview
    • Forms Processor
      • Form Types
      • HTML & VueJS
      • Styling and Design
      • JS Caclulations and Functions
    • Customizing and Styling
      • Custom Components
      • Custom CSS
      • Custom Components
      • Page Pre-loaders
      • Favicon
    • Design Patterns and Best Practices
      • Working with environments
      • Handling Data
      • Saving Data
      • Optimization
      • Business Logic
      • UI / UX
  • Security
    • Authentication
    • Security White Paper
    • Firewalls
    • Technology Stack
  • Compatibility
Powered by GitBook
On this page
  • Inspecting an Element
  • Debugging JavaScript

Was this helpful?

  1. Getting Started
  2. Support

Hacking a Webpage

PreviousSupportNextLearning JSON

Last updated 3 years ago

Was this helpful?

As you begin to play around with BetterForms, you may find that sometimes you want to dig deeper into the webpage to understand what's really going on—especially if things don't display just right! If you're familiar with basic web development, these techniques may already seem familiar to you.

Hacking a webpage requires that you use the developer tools that are built into your browser. For a brief intro about how to use the developer tools in your browser, check out . We recommend using Google Chrome for development, but these tips should work in FireFox and Safari just the same.

These tips are only relevant for debugging JavaScript, HTML, and CSS in the web browser. If you're experiencing issues with your data not behaving as expected, you may want to start with your instead.

Inspecting an Element

An easy way to open the developer tools in most browsers is to right-click on any element and select "Inspect Element". This opens the developer tools panel with the element you selected highlighted in the HTML code. From here, you can easily see how the JSON schema of the BetterForms editor translates to the HTML element on the page. You can even edit the HTML directly in the developer tools panel to quickly see how the changes might affect the look of the page.

This panel also allows you to modify the CSS properties of an element. This is a great way to test how some CSS changes will look before you add them to your .

If you're new to CSS, this is a great way to expand your knowledge by playing around with existing sites. Check out for a quick overview.

Debugging JavaScript

If you have a function action that you want to step through line-by-line, you can add a debugger;statement to your code at the point you want the code to pause. Then, with your developer tools panel open, trigger the function (click the button or refresh the page, etc...).

You'll see your code pop up in your developer tools panel and can use the buttons to step over a function, step into/out of a function, or just play the script with the blue continue button. These buttons are very similar to those found in the FileMaker script debugger.

While a script is paused, you can mouse-over parts of a variable or JSON path to see the result of that data. This is very helpful to see if your JSON path reference is incorrect!

When you're done, don't forget to remove the debugger statement so that your scripts are better hidden in your production app!

this link
Helper File's inbox & outbox
site settings
this article