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 http://docs.frevvo.com/docs/index.php/V4_Integration#Custom_JavaScript

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: