Posted in Forms

Custom JavaScript in forms

We keep getting asked this question: can I create my own custom JavaScript that gets called when something happens in the form e.g. a control value changes or something is clicked.

You can do that in frevvo using a custom theme. It’s definitely unusual to provide custom JavaScript in the theme which is supposed to be for customizing look & feel only. We’ll be moving this out of the theme in an upcoming version.

In any event, you can associate JS handlers for any event associated with any control in the form e.g. a valueChange event. When the value of the control changes your JS function will be called. For details, please see the documentation on this at

It’s very important to remember that this JavaScript runs in the client browser and functions defined there cannot be used in rules, which run on the frevvo server.

Leave a Reply