BoltWire

Innovative Ideas :: Radical Results!

INFORMATION

DOCUMENTATION

SOLUTIONS

Javascript

Documentation > Forms > Javascript

Summary

BoltWire has an easy system for adding javascript to forms, and a couple built in capabilities.

Build in javascript

BoltWire has some javascript for forms build in, so you can use them right away.

Clear Value

Put js=clear in a textbox with a prefilled value. It will vanish when they click on it.

Auto Submit

Put js=submit into any input type. BoltWire will automatically add the appropriate onChange or onClick code to the html output.

How to

To add your own custom javascript commands define them like this in a config file, then put js=name in your form field:

<code>$BOLTformJs['name'] = "javascript commands";</code>

Copyright © 2013, all rights reserved.